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

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

licc0431 opened this issue · 1 comments

当测试图像为w70 h154 时
in
facebox_dnn_result, _ = facebox_dnn_detect.detect(srcimg)facebox_dnn_result, _ = 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?

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