RobustBench / robustbench

RobustBench: a standardized adversarial robustness benchmark [NeurIPS 2021 Benchmarks and Datasets Track]
https://robustbench.github.io
Other
671 stars 99 forks source link

Latest install causing compatibilty issue with torchvision #157

Closed arya-snh closed 1 year ago

arya-snh commented 1 year ago

I have been trying various torchvision versions (as per requirements.txt) to make the latest install work (installed by running: pip install git+https://github.com/RobustBench/robustbench.git). They all show up with some errors. For instance, torchvision==0.11.2 gives the following error -> ImportError: cannot import name 'Conv2dNormActivation' from 'torchvision.ops.misc'.

How to fix this? What version of torchvision should I use?

fra31 commented 1 year ago

Hi,

I just tried to install the current version (see here) and it seems to work fine with the latest torch and torchvision versions. At which point do you get that error?

arya-snh commented 1 year ago

Right, figured the issue. Thank you.