-
Notifications
You must be signed in to change notification settings - Fork 710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔨 Remove input_size
argument from models
#1827
Comments
Hi @samet-akcay |
Sure, thanks for your interest |
Hi @samet-akcay, Certain utility functions contain the parameter Additionally, some functions compute values dependent on Thanks |
.take |
Hi @samet-akcay Thanks. |
Hi @blaz-r |
Hi, About ganomaly, the input_size you linked is part of torch model and that needs to stay. You should remove the input_size in lighting_model docstring: anomalib/src/anomalib/models/image/ganomaly/lightning_model.py Lines 26 to 31 in 34b3a90
the input_size is set inside lighting_model with setup function: anomalib/src/anomalib/models/image/ganomaly/lightning_model.py Lines 95 to 103 in 34b3a90
so the code you linked will work. But looking at this setup function, it seems like the assert string is wrong as it says csflow, so you can fix that. |
Hi @blaz-r Please review the PR and let me know. |
Signed-off-by: Shakib-IO <[email protected]>
Signed-off-by: Shakib-IO <[email protected]> Co-authored-by: Samet Akcay <[email protected]>
Description
After merging PR #1706, models no longer require
input_size
argument. However, there are some places whereinput_size
is still used, such as docs and some other utility functions. This is to ensure they are all removed properly.For example, here is an example to the Patchcore model.
anomalib/src/anomalib/models/image/patchcore/lightning_model.py
Lines 25 to 33 in 34b3a90
The text was updated successfully, but these errors were encountered: