module 'mmcv' has no attribute '__version__

Viewed 570

I'm trying to use mmdet and mmcv in SCRFD for face detection and face this error:

 mmcv_version = digit_version(mmcv.__version__)
 AttributeError: module 'mmcv' has no attribute '__version__'

Has any buddy hit this error before?

2 Answers

I found the answer:

for torch 1.8 :

pip3 install mmcv-full==1.3.15 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.8.0/index.html

this command worked for me

For CPU Version :

pip3 install mmcv-full==1.3.17 -f https://download.openmmlab.com/mmcv/dist/cpu/torch1.8.0/index.html

This worked for me!

Related