hpc203 / 10kinds-light-face-detector-align-recognition

10种轻量级人脸检测算法的比拼,其中还包含人脸关键点检测与对齐,人脸特征向量提取和计算距离相似度
451 stars 113 forks source link

当图像尺度较小时,facebox报错 #7

Open licc0431 opened 4 years ago

licc0431 commented 4 years ago

当测试图像为w70 h154 时 in facebox_dnnresult, = facebox_dnn_detect.detect(srcimg)facebox_dnnresult, = facebox_dnn_detect.detect(srcimg) in detect detections = self.net.forward()

cv2.error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-hfoi92lm\opencv\modules\dnn\src\dnn.cpp:3466: error: (-215:Assertion failed) total(os[i]) > 0 in function 'cv::dnn::dnn4_v20200609::Net::Impl::getLayerShapesRecursively'

是不图像太小了,无法前向计算?需要修改resize?

hpc203 commented 4 years ago

是的,如果输入图片尺寸很小,可以尝试用blazeface