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

mmcv version #41

Open
bharathCoitor opened this issue Mar 23, 2022 · 1 comment
Open

mmcv version #41

bharathCoitor opened this issue Mar 23, 2022 · 1 comment

Comments

@bharathCoitor
Copy link

i am using google colab
pytorch =1.2.0
cuda=9.2

i have faced error like
Traceback (most recent call last):
File "/content/drive/My Drive/Colab Notebooks/GAN2Shape-main/run.py", line 7, in
from mmcv.runner import init_dist
File "/usr/local/lib/python3.7/dist-packages/mmcv/init.py", line 4, in
from .fileio import *
File "/usr/local/lib/python3.7/dist-packages/mmcv/fileio/init.py", line 2, in
from .file_client import BaseStorageBackend, FileClient
File "/usr/local/lib/python3.7/dist-packages/mmcv/fileio/file_client.py", line 15, in
from mmcv.utils.misc import has_method
File "/usr/local/lib/python3.7/dist-packages/mmcv/utils/init.py", line 40, in
from .hub import load_url
File "/usr/local/lib/python3.7/dist-packages/mmcv/utils/hub.py", line 20, in
from torch.hub import HASH_REGEX, _get_torch_home, download_url_to_file
ImportError: cannot import name 'download_url_to_file' from 'torch.hub' (/usr/local/lib/python3.7/dist-packages/torch/hub.py)

so kindly suggest any way to proceed,
thank you.

@ouyangshixiong
Copy link

ouyangshixiong commented Mar 31, 2022

me too.
pytorch 1.2 do not have public method download_url_to_file in package torch.hub

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