Closed rushikeshpolawar closed 4 years ago
Use python 3
On Wed, 25 Sep, 2019, 12:23 PM Rushikesh Polawar, notifications@github.com wrote:
Traceback (most recent call last): File "cnn_keras.py", line 75, in train() File "cnn_keras.py", line 63, in train train_labels = np_utils.to_categorical(train_labels) File "/usr/local/lib/python2.7/dist-packages/keras/utils/np_utils.py", line 31, in to_categorical num_classes = np.max(y) + 1 File "/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 2505, in amax initial=initial) File "/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction return ufunc.reduce(obj, axis, dtype, out, **passkwargs) ValueError: zero-size array to reduction operation maximum which has no identity
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EvilPort2/Sign-Language/issues/34?email_source=notifications&email_token=ACQOG72JO7OMEKY5DQC3LG3QLMDGTA5CNFSM4I2IQQVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HNQGHCQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ACQOG76WK6KGEDZFUJTRRO3QLMDGTANCNFSM4I2IQQVA .
Traceback (most recent call last): File "cnn_keras.py", line 75, in
train()
File "cnn_keras.py", line 63, in train
train_labels = np_utils.to_categorical(train_labels)
File "/usr/local/lib/python2.7/dist-packages/keras/utils/np_utils.py", line 31, in to_categorical
num_classes = np.max(y) + 1
File "/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 2505, in amax
initial=initial)
File "/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation maximum which has no identity