biubug6 / Pytorch_Retinaface

Retinaface get 80.99% in widerface hard val using mobilenet0.25.
MIT License
2.63k stars 774 forks source link

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

Closed yjhuasheng closed 5 years ago

yjhuasheng commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

anonymous530 commented 5 years ago

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

Thanks.

pinery-sls commented 2 years ago

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????