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)
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.