-
Notifications
You must be signed in to change notification settings - Fork 47
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
运行wider_test.py遇到的问题 #10
Comments
报错的原因是因为没有检测到人脸框,所以会报错,你可以写一个判断机制,如果det.shape[0]==0返回一个一维全是0 的det,比如dets = np.array([0,0,0,0,0])的代码,这样就不会出现dets没有被赋值了 |
我找到问题原因,得到了正确结果!谢谢了! |
麻烦问一下,我出现了和你一样的错误,请问你是如何结局的呢,谢谢 @1529046970 |
bbox_vote()中加入了判断,det.shape[0]==1时,就直接返回det |
bbox_vote()中if merge_index.shape[0] <= 1:可改为<,不然可能会报错 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
您好,谢谢您提供的代码!我在测试时遇到问题。detect到第1241张图片后traceback,在调用wider_test.py下的bbox_vote函数时,没有进入while循环(报错:UnboundLocalError:local variable 'dets' referenced before assignment),您可以对我的遇到的错误给一些意见吗?谢谢!
The text was updated successfully, but these errors were encountered: