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

Issue downloading state dictionary #9

Open
bchou opened this issue Sep 24, 2019 · 1 comment
Open

Issue downloading state dictionary #9

bchou opened this issue Sep 24, 2019 · 1 comment

Comments

@bchou
Copy link

bchou commented Sep 24, 2019

Hi,

I'm trying to test out the pre-trained model and am having issues downloading the state dictionary with the "main.py" script. Here is the error I'm getting:

line 461, in load_state_dict_from_url
hash_prefix = HASH_REGEX.search(filename).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

I've tried updating PyTorch and Torchvision to the latest releases, but got the same error. I then downloaded the state dictionary manually from the provided URL and using torch.load to load it into the variable "state_dict", but ran into more issues when trying to load that with the model. I've been using the following command to run the script:

python main.py [train and validation folders] --arch vovnet39 --pretrained --savedir VoVNet39

Thanks,
Bryan

@zuogenulideren
Copy link

Hi,f
I have the same question with you, could you tell me how to solve this problem? Thanks very much.

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

2 participants