How to fix “IndexError: list index out of range” in Tensorflow
问题 I'm creating an Image Classifier using Tensorflow and Keras, but when I tried to train my model I got an error: IndexError: list index out of range. I think the problem is with my model, because when I remove the conv2D layers, then the code throws no error. model = Sequential() model.add(Conv2D(64,(3,3),activation='relu',padding='same')) model.add(Conv2D(64,(3,3),activation='relu',padding='same')) model.add(MaxPool2D((2,2),strides=(2,2))) model.add(Conv2D(128,(3,3),activation='relu',padding=