-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Torch source change: repo incompatible with versions 0.5.0 and 1.0.0 #3
Comments
I had same issue. Downgrading torch to 0.3.1 works for me. |
After Downgrading torch to 0.3.1, and run the 'main.py' .
How to solve? |
This is mostly like an issue of your CUDA. For example, if you are using 2080Ti and CUDA10, pytorch 0.3 is not supportive enough. Since it is an 'old' repo, you might have to try the 'old' settings like 1080Ti and CUDA8 where the environment is fully tested. |
Don't know if it helps or not, but I created conda env with: conda install scipy==1.0.0 (must be installed first) and Net-Dissection-Lite worked perfect (on linux, never successed on windows). |
@cyizhuo that worked perfectly, thank you so much! |
Glad to know that~ |
It seems the repo is suffering from changes in Torch source code, more specifically in the use of the BatchNorm2d object put possibly on more places.
The repo works fine for the resnet18 model, but downloading and using the pretrained models for resnet50 and densenet161 yields errors:
AttributeError: 'BatchNorm2d' object has no attribute 'track_running_stats'
There are also a set of SourceChangeWarnings, among other:
Tried running both Pytorch versions 0.5.0 and 1.0.0. This thread suggests downgrading Pytorch to 0.3 would make it work, will update if I get the possibility to do so.
Error Log
The text was updated successfully, but these errors were encountered: