You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "C:/Users/PC5/Downloads/Compressed/JPG-PNG-to-MNIST-NN-Format-master/JPG-PNG-to-MNIST-NN-Format-master/convert-images-to-mnist-format.py", line 25, in
label = int(filename.split('/')[2])
IndexError: list index out of range
The text was updated successfully, but these errors were encountered:
Since the machine accepts that the file name is splited by '\', your filename will be stored as "./training-images\1\im51563.png". So filename.split('/') will be ['.', 'training-images\1\im39485.png'], this will lead 'list index out of range'.
File "C:/Users/PC5/Downloads/Compressed/JPG-PNG-to-MNIST-NN-Format-master/JPG-PNG-to-MNIST-NN-Format-master/convert-images-to-mnist-format.py", line 25, in
label = int(filename.split('/')[2])
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: