Skip to content
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

Undefined name 'model_urls' in ./models/resnet_sn.py #2

Closed
cclauss opened this issue Jul 8, 2018 · 2 comments
Closed

Undefined name 'model_urls' in ./models/resnet_sn.py #2

cclauss opened this issue Jul 8, 2018 · 2 comments

Comments

@cclauss
Copy link

cclauss commented Jul 8, 2018

Each undefined name has the potential to raise NameError at runtime.

flake8 testing of https://github.com/switchablenorms/Switchable-Normalization on Python 3.6.3

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./models/resnet_sn.py:159:50: F821 undefined name 'model_urls'
        model.load_state_dict(model_zoo.load_url(model_urls['resnet18']))
                                                 ^
./models/resnet_sn.py:171:50: F821 undefined name 'model_urls'
        model.load_state_dict(model_zoo.load_url(model_urls['resnet34']))
                                                 ^
./models/resnet_sn.py:183:50: F821 undefined name 'model_urls'
        model.load_state_dict(model_zoo.load_url(model_urls['resnet50']))
                                                 ^
./models/resnet_sn.py:195:50: F821 undefined name 'model_urls'
        model.load_state_dict(model_zoo.load_url(model_urls['resnet101']))
                                                 ^
./models/resnet_sn.py:207:50: F821 undefined name 'model_urls'
        model.load_state_dict(model_zoo.load_url(model_urls['resnet152']))
                                                 ^
5     F821 undefined name 'model_urls'
5
@JiaminRen
Copy link
Collaborator

JiaminRen commented Jul 8, 2018

Currently, we release the model of ResNet50v1+SN , you can find the pretrained model download link in Model Zoo of README.md, the model_urls in resnet_sn.py is unavailable.

@pluo911
Copy link
Collaborator

pluo911 commented Jul 8, 2018

SN is easy to use with the other networks. Will release more examples.

@pluo911 pluo911 closed this as completed Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants