Error after fresh install: Cannot import '_download_url_to_file' from 'torch.utils.model_zoo'
See original GitHub issue🐛 Bug
To Reproduce
Steps to reproduce the behavior:
- Install as per instructions (Ubuntu DSVM)
- Attempt to start training
Error
The error is:
ImportError: cannot import name '_download_url_to_file' from 'torch.utils.model_zoo'
Additional context
If I am seeing things clearly, torch.utils.model_zoo
no longer contains _download_url_to_file
.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
torch.hub — PyTorch 1.13 documentation
torch.hub. Pytorch Hub is a pre-trained model repository designed to facilitate research reproducibility. Publishing models. Pytorch Hub supports publishing ...
Read more >Cannot import torch module - python - Stack Overflow
Open command prompt or terminal and type: pip3 install pytorch. If it says pip isn't installed then type: python -m pip install -U...
Read more >torch.utils.model_zoo — PyTorch master documentation
Source code for torch.utils.model_zoo. from __future__ import absolute_import, division, print_function, unicode_literals import torch import hashlib import ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@my-hello-world as a temp fix, you make these changes to
maskrcnn_benchmark/utils/model_zoo.py
Hello, I am still getting the error in docker image. I update file as proposed temporary fix above but same error shows up. It seems somewhat cached code is run. How can i force it to use normal code instead of cached (well, if that is the case) thanks in advance
And the head content of model_zoo.py is as follows ( I commented out torch.utils related lines):