deepinsight / insightface

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

KeyError: 'SCRFD is not in the models registry' while converting onnx model #1646

Open leoluopy opened 3 years ago

leoluopy commented 3 years ago

i am converting model to onnx my command is below: python scrfd2onnx ../configs/scrfd/scrfd_500m.py scrfd_500m.pth --shape -1 -1 --input-img face.jpg

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

do anyone have some ideas ? @nttstar

leoluopy commented 3 years ago

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