deepinsight / insightface

State-of-the-art 2D and 3D Face Analysis Project
https://insightface.ai
23.31k stars 5.41k forks source link

scrfd error : The KeyError ~~~ is not in the ~~~ registry #1547

Open knydr622 opened 3 years ago

knydr622 commented 3 years ago

Hi, I am testing "webcam_demo.py" in insightface/scrfd. However, I could not do it cuz

"" KeyError: 'SCRFD is not in the models registry ""

Im using pre-trained model :: configs/scrfd/SCRFD_2.5G_BNKPS.py checkpoints/SCRFD_2.5G_KPS.pth

I cant find how to do. Can u help me ?? Thanks

nttstar commented 3 years ago

right now just use tools/scrfd.py for inference.

knydr622 commented 3 years ago

Hi, thanks for ur reply

However I face the other problem when I run ./tools/test_example.sh, the error occur ::

KeyError: 'RetinaFaceDataset is not in the dataset registry'

Please help Thanks :)

ignacioserna commented 3 years ago

Hi, you have to install the insightface repository.

leoluopy commented 3 years ago

install mmdet at scrfd root diretory , problem is solved pip install -v -e . # or "python setup.py develop" @knydr622