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

ValueError: zero-size array to reduction operation minimum which has no identity #17

Closed
yjhuasheng opened this issue Oct 16, 2019 · 4 comments

Comments

@yjhuasheng
Copy link

Hi, when I run the test_wilderface.py, return the valueError
File "test_widerface.py", line 107, in
im_size_min = np.min(im_shape[0:2])
File "<array_function internals>", line 6, in amin
File "/usr/local/lib/python3.5/dist-packages/numpy/core/fromnumeric.py", line 2746, in amin
keepdims=keepdims, initial=initial, where=where)
File "/usr/local/lib/python3.5/dist-packages/numpy/core/fromnumeric.py", line 90, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity

@anonymous530
Copy link

Hi, when I run the test_wilderface.py, return the valueError
File "test_widerface.py", line 107, in
im_size_min = np.min(im_shape[0:2])
File "<array_function internals>", line 6, in amin
File "/usr/local/lib/python3.5/dist-packages/numpy/core/fromnumeric.py", line 2746, in amin
keepdims=keepdims, initial=initial, where=where)
File "/usr/local/lib/python3.5/dist-packages/numpy/core/fromnumeric.py", line 90, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity

I have the same problem. How did you fix it?

@biubug6 biubug6 reopened this Oct 23, 2019
@biubug6
Copy link
Owner

biubug6 commented Oct 23, 2019

You get the image_raw of "None" Which causes im_shape of "empty tuple" . Maybe you need to check your test data path.

@anonymous530
Copy link

You get the image_raw of "None" Which causes im_shape of "empty tuple" . Maybe you need to check your test data path.

Thanks.

@biubug6 biubug6 closed this as completed Oct 23, 2019
@pinery-sls
Copy link

Hi, when I run the test_wilderface.py, return the valueError
File "test_widerface.py", line 107, in
im_size_min = np.min(im_shape[0:2])
File "<array_function internals>", line 6, in amin
File "/usr/local/lib/python3.5/dist-packages/numpy/core/fromnumeric.py", line 2746, in amin
keepdims=keepdims, initial=initial, where=where)
File "/usr/local/lib/python3.5/dist-packages/numpy/core/fromnumeric.py", line 90, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity

I have the same problem. How did you fix it?

me too. How to solve it????

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

4 participants