Open licc0431 opened 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?
是的,如果输入图片尺寸很小,可以尝试用blazeface
当测试图像为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?