RobustBench / robustbench

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

"AttributeError: module 'timm.models.xcit' has no attribute 'XCiT' " error when importing load_model from robustbench.utils #189

Closed itayreznik closed 4 months ago

itayreznik commented 4 months ago

Here is the error: image

This error started happening after I updated to the recent robustBench library version using 'pip install'.

itayreznik commented 4 months ago

I now see that the change in #163 is the solution to my error. But somehow the robustbench version in my environment does not have this update that is committed in #163. Why is that? I ran 'pip install git+https://github.com/RobustBench/robustbench.git ' to update the library :/

fra31 commented 4 months ago

Hi,

probably you have to remove previous versions, and the re-install it.

fra31 commented 4 months ago

Closing this for now, feel free to reopen it if needed.