mmskeleton icon indicating copy to clipboard operation
mmskeleton copied to clipboard

ImportError: cannot import name 'load_url_dist' from 'mmcv.runner.checkpoint' (/home/ai-pose/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/mmcv-1.2.7-py3.7.egg/mmcv/runner/checkpoint.py)

Open MaarufB opened this issue 4 years ago • 8 comments

Hi everyone. How can I fix this? This is my new task and lack of experience for this one. Thanks in Advance.

MaarufB avatar Mar 05 '21 03:03 MaarufB

Hi everyone. How can I fix this? This is my new task and lack of experience for this one. Thanks in Advance.

I also encountered the same problem. Have you solved it?How did you solve it?

baifan305 avatar Mar 16 '21 06:03 baifan305

Hello bro just downgrade the mmcv version to 0.4.3

MaarufB avatar Mar 16 '21 08:03 MaarufB

Thank you for your reply and wish you all the best

| | fanfan_fighting | | @.*** | 签名由网易邮箱大师定制 On 3/16/2021 @.***> wrote:

Hello bro just downgrade the mmcv version to 0.4.3

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

baifan305 avatar Mar 17 '21 07:03 baifan305

pip install mmcv==0.4.3 worked!

kenzoukun avatar Mar 24 '21 02:03 kenzoukun

this didn't work for me. i got the error:

AssertionError: MMCV==0.4.3 is used but incompatible. Please install mmcv>=1.3.17, <=1.5.0.

so i went in and looked at the mmcv files to figure out the equivalent of 'load_url_dist' in the version i installed, which was 1.4.8, the latest available on pip. and i'm pretty sure it's 'load_from_http'. i substituted 'load_url_dist' for 'load_from_http' on checkpoint.py and the error is gone.

however, i am still dealing with a multitude of errors and haven't been able to fully ascertain if that solved the problem, so no guarantees here. this is just the best i could do. installing mmcv-full didn't work, no version between 1.3.17 and 1.5.0 worked.

leticiac3po avatar Apr 06 '22 15:04 leticiac3po

谢谢,邮件已收到

kenzoukun avatar Apr 06 '22 15:04 kenzoukun