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
for filename in range(1, 3065):
with h5py.File('/content/drive/My Drive/Colab Notebooks/dataset/imageData/{}.mat'.format(filename), 'r') as f:
img = f['cjdata']['image']
label = f['cjdata']['label'][0][0]
IndexError Traceback (most recent call last)
in ()
3 img = cv2.cvtColor(img, cv2.COLOR_GRAY2RGB)
4 img = cv2.resize(img, (512, 512))
----> 5 label = y[i-1]
6 training_data.append([img, label])
7
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: