hendrycks / natural-adv-examples

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

ResNet50 get 0% (not ~2% as reported in the paper) #9

Closed giangnguyen2412 closed 3 years ago

giangnguyen2412 commented 3 years ago

Hey,

Thanks for your such great work. I am trying to run the eval.py to and use ResNet50 pretrained to get your result in Figure 2. However, I am getting 0% accuracy for ResNet50.

Can you give me your advice? Giang

giangnguyen2412 commented 3 years ago

Other models' results in Table 1 ImageNet-A are reproducible but not ResNet50. @hendrycks Can you check it?

hendrycks commented 3 years ago

torchvision's ResNet-50 gets 0%. A different ResNet-50 trained from scratch gets ~2%.

giangnguyen2412 commented 3 years ago

@hendrycks Hello. Thanks for your kind reply. Could you point me to the ResNet-50 trained from scratches? In your code, you still use torchvision's ResNet50.

hendrycks commented 3 years ago

We did not upload a ResNet-50 trained from scratch. https://github.com/clovaai/CutMix-PyTorch has a ResNet-50 (though I think it was trained for 300 epochs).

giangnguyen2412 commented 3 years ago

Thank you @hendrycks

expectopatronum commented 2 years ago

Did anyone try if it works with the pretrained ResNet-50 from https://github.com/clovaai/CutMix-PyTorch?

expectopatronum commented 2 years ago

torchvision's ResNet-50 gets 0%. A different ResNet-50 trained from scratch gets ~2%.

Can this be explained by the fact that ResNet-50 was used for selecting images?

Thereafter we delete the images that fixed ResNet-50 [24] classifiers correctly predict.

If it is the exact same model and all correctly classified examples have been removed, it is no surprise that it has 0% accuracy.