ShiqiYu / libfacedetection.train

The training program for libfacedetection for face detection and 5-landmark detection.
Apache License 2.0
766 stars 209 forks source link

Problems installing the repo #86

Open LuisGF93 opened 1 year ago

LuisGF93 commented 1 year ago

Hi,

I'm following the README.md instructions for installing everything on my computer, but I'm facing some kind of error when I'm trying to execute the training process.

I've installed pytorch according with the cuda version I have on my computer and also I've followed mmcv instructions to install it without any issue. I've also installed mmdetection following their instructions and everything seems to be ok.

The problem is when I try to run the sample command for training. I'm getting this error:

ModuleNotFoundError: No module named 'mmcv.runner' Traceback (most recent call last): File "tools/train.py", line 13, in <module> from mmcv.runner import get_dist_info, init_dist ModuleNotFoundError: No module named 'mmcv.runner'

Do you have any idea on what am I doing wrong with it?

Wwupup commented 1 year ago

Hello, @LuisGF93 , I’m not sure what caused the problem, it might be that you installed the wrong version of mmcv, please install the version in the README. Also, the MMDetection package does not need to be installed through pip, but rather run python setup.py develop in the repository to install locally.