You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before proposing this issue, plz search the existed issues by your keywords first.
Describe the bug
I get the same error in both FaceBoxes/FaceBoxes.py line 133 and FaceBoxes/FaceBoxes_ONNX.py line 138.
The program cannot determine the value. Because the variable b is two-dimensional and cannot be compared with a scalar variable vis_thres.
To Reproduce
Case 1
python3 demo.py -f examples/inputs/emma.jpg -o 3d.
Case2
python3 demo_video.py -f examples/inputs/videos/214.avi -o 3d
Expected behavior
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() Screenshots
Platform:
Windows
Additional context
Add any other context about the problem here.
I modified the code as the follow:
In FaceBoxes/FaceBoxes.py line 133 I change for b in dets: => for b in dets.squeeze(0):
In FaceBoxes/FaceBoxes_ONNX.py line 138 I change for b in dets: => for b in dets.squeeze(0):
If used in older numpy, please use np.squeeze(dets, 0)
The text was updated successfully, but these errors were encountered:
Before proposing this issue, plz search the existed issues by your keywords first.
Describe the bug
I get the same error in both FaceBoxes/FaceBoxes.py line 133 and FaceBoxes/FaceBoxes_ONNX.py line 138.
The program cannot determine the value. Because the variable b is two-dimensional and cannot be compared with a scalar variable vis_thres.
To Reproduce
Case 1
python3 demo.py -f examples/inputs/emma.jpg -o 3d.
Case2
python3 demo_video.py -f examples/inputs/videos/214.avi -o 3d
Expected behavior
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Screenshots
Platform:
Additional context
Add any other context about the problem here.
I modified the code as the follow:
In FaceBoxes/FaceBoxes.py line 133 I change for b in dets: => for b in dets.squeeze(0):
In FaceBoxes/FaceBoxes_ONNX.py line 138 I change for b in dets: => for b in dets.squeeze(0):
If used in older numpy, please use np.squeeze(dets, 0)
The text was updated successfully, but these errors were encountered: