Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
licc0431 opened this issue Nov 9, 2020 · 1 comment
Open

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

licc0431 opened this issue Nov 9, 2020 · 1 comment

Comments

@licc0431
Copy link

licc0431 commented Nov 9, 2020

当测试图像为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?

@hpc203
Copy link
Owner

hpc203 commented Nov 9, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants