-
Notifications
You must be signed in to change notification settings - Fork 951
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
ValueError with new numpy version for MTCNN #206
Comments
I'm Having the same issue, to add a few details: the issue is no face detection in one of the frames in the batch which is than has an empty vector being concatenated to non empty vector (Not sure if it's a numpy version issue, but doesn't fill like numpy should allow it anyway). There is also another issue where you have multiple detections. b_i_inds = np.where(image_inds == b_i)[0][0: 1]
if len(b_i_inds) == 0:
continue I guess duplicating another frame is also an option you can consider. |
@preetham-tn @eli-clarity would it be possible for you to provide a reproducible example of this problem? |
This issue should now be fixed with #207 and version 2.5.3 on PyPI. Running |
Thanks @timesler |
Also can confirm the issue is gone, thanks for handling it |
When batch of images are passed to mtcnn.detect() , it gives out ValueError for new versions of numpy
When the list is assigned to the numpy array in the following code , for batch of images , list will have inhomogeneous shape after the first dimension which gives out ValueError
facenet-pytorch/models/utils/detect_face.py
Line 183 in 555aa4b
The text was updated successfully, but these errors were encountered: