hendrycks / natural-adv-examples

A Harder ImageNet Test Set (CVPR 2021)
MIT License
590 stars 51 forks source link

What structure in the file PATH_TO_IMAGENET_VAL = "./imagenet1k/val/"? #8

Closed double-fire-0 closed 3 years ago

double-fire-0 commented 3 years ago

Is this folder like the structure as follows (from your code it should be like this): -n00001  -XXX.JPEG  -XXX.JPEG -n00002  -XXX.JPEG  -XXX.JPEG

But my standard imagenet1k val dataset, only pictures in this folder. So your code can't run correctly. the structure is like this: -XXX.JPEG -XXX.JPEG -XXX.JPEG -XXX.JPEG

double-fire-0 commented 3 years ago

Solve this problem by this: https://raw.githubusercontent.com/soumith/imagenetloader.torch/master/valprep.sh