XingangPan / GAN2Shape

Code for GAN2Shape (ICLR2021 oral)
https://arxiv.org/abs/2011.00844
MIT License
575 stars 101 forks source link

mmcv version #41

Open bharathCoitor opened 2 years ago

bharathCoitor commented 2 years ago

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 commented 2 years ago

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