ShiqiYu / libfacedetection

An open source library for face detection in images. The face detection speed can reach 1000FPS.
Other
12.27k stars 3.05k forks source link

facedetectcnn-data.cpp里的层和通过libfacedetection.train yunet_n.py导出的yunet2cpp.py导出的层不一致 #366

Closed nianfd closed 1 year ago

nianfd commented 1 year ago

facedetectcnn-data.cpp里的层和通过libfacedetection.train yunet_n.py yunet2cpp.py导出的层不一致,导致C++工程用不了,多了下面几层: image

Wwupup commented 1 year ago

@nianfd 目前的C++库是使用yunet-s.pth导出的而不是使用yunet-n.pth。若想要使用yunet-n.pth,可以自行对facedetect-model.cpp进行修改。