Keras input_shape for conv2d and manually loaded images
问题 I am manually creating my dataset from a number of 384x286 b/w images. I load an image like this: x = [] for f in files: img = Image.open(f) img.load() data = np.asarray(img, dtype="int32") x.append(data) x = np.array(x) this results in x being an array (num_samples, 286, 384) print(x.shape) => (100, 286, 384) reading the keras documentation, and checking my backend, i should provide to the convolution step an input_shape composed by ( rows, cols, channels ) since i don't arbitrarily know the