Skip to content

Imagenet-C loader can only return 5k images #92

@oripress

Description

@oripress

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:

from robustbench.data import load_imagenetc
x_test, y_test = load_imagenetc(50000, 5, path, False, ['brightness'])
print(x_test.size()) 

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions