ValueError( ValueError: Input 0 of layer conv2d_3 is incompatible with the layer: expected axis -1 of input shape to have value 1 but received input with shape (None, 6, 216, 13). code example
Example: ValueError: Input 0 is incompatible with layer model: expected shape=(None, 224, 224, 3), found shape=(32, 224, 3)
img = cv2.resize(img,(240,240)) # resize image to match model's expected sizing
img = img.reshape(1,240,240,3) # return the image with shaping that TF wants.