-
Notifications
You must be signed in to change notification settings - Fork 99
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
Imagenet-C loader can only return 5k images #92
Comments
Hi, sorry for the late reply. At the moment it is indeed possible to load the 5k images for which the results are reported. I've added an error if more images are specified with #96. For common corruptions, it might make sense to add the option of running the evaluation of the whole validation set. I think this would require some adjustment of the code, since at the moment all examples are loaded at once in robustbench/robustbench/data.py Line 207 in 1b632c5
@max-andr @dedeswim Thoughts? |
@fra31: agreed, throwing an error sounds good as a temporary solution. And I think it's important to preserve backward compatibility as returning directly tensors has been useful to simplify code around RobustBench and now used in many scripts. As for a better solution that preserves backward compatibility, we could create an optional parameter for each What do you think? |
I agree, we should preserve the current loading as default and adding the option of using the full validation set for common corruptions evaluation. |
Hi! I agree to add optional support for DataLoaders. I can open a PR and work on it |
@dedeswim that would be fantastic! |
When loading imagenetc with a batchsize of over 5k images, you always get 5k images back.
This doesn't throw out an error, and it can be confusing when you expect to receive more images than you actually get.
This behavior can be shown using this code snippet:
The text was updated successfully, but these errors were encountered: