10kinds-light-face-detector-align-recognition icon indicating copy to clipboard operation
10kinds-light-face-detector-align-recognition copied to clipboard

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

Open licc0431 opened this issue 4 years ago • 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?

licc0431 avatar Nov 09 '20 03:11 licc0431

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

hpc203 avatar Nov 09 '20 03:11 hpc203