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

Mean of empty slice, and the reults are [nan,nan]. #5

Open
weizhiliang0520 opened this issue Nov 18, 2021 · 1 comment
Open

Mean of empty slice, and the reults are [nan,nan]. #5

weizhiliang0520 opened this issue Nov 18, 2021 · 1 comment

Comments

@weizhiliang0520
Copy link

100% 4/4 [00:00<00:00, 257.20it/s]
--[input_img_shape]: (128, 128, 3)
passing through inception network ...
100% 1/1 [00:01<00:00, 2.00s/it]
/usr/local/lib/python3.7/dist-packages/numpy/core/fromnumeric.py:3373: RuntimeWarning: Mean of empty slice.
out=out, **kwargs)
/usr/local/lib/python3.7/dist-packages/numpy/core/_methods.py:163: RuntimeWarning: invalid value encountered in true_divide
ret, rcount, out=ret, casting='unsafe', subok=False)
/usr/local/lib/python3.7/dist-packages/numpy/core/_methods.py:170: RuntimeWarning: invalid value encountered in true_divide
ret = ret.dtype.type(ret / rcount)
nan nan

@weizhiliang0520
Copy link
Author

100% 4/4 [00:00<00:00, 257.20it/s] --[input_img_shape]: (128, 128, 3) passing through inception network ... 100% 1/1 [00:01<00:00, 2.00s/it] /usr/local/lib/python3.7/dist-packages/numpy/core/fromnumeric.py:3373: RuntimeWarning: Mean of empty slice. out=out, **kwargs) /usr/local/lib/python3.7/dist-packages/numpy/core/_methods.py:163: RuntimeWarning: invalid value encountered in true_divide ret, rcount, out=ret, casting='unsafe', subok=False) /usr/local/lib/python3.7/dist-packages/numpy/core/_methods.py:170: RuntimeWarning: invalid value encountered in true_divide ret = ret.dtype.type(ret / rcount) nan nan

I am not sure wheather the influence of input image size, since my image size is only 128*128.

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

1 participant