keras-segnet
keras-segnet copied to clipboard
ValueError: Error when checking input: expected conv2d_1_input to have shape (256, 256, 1) but got array with shape (1, 256, 256)
Thank you for sharing the code. I have been trying to apply your code a data set. However, running the code gives the following error message: exception_prefix='input') File "D:\Program Files\Python\Python35\lib\site-packages\keras\engine\training_utils.py", line 138, in standardize_input_data str(data_shape)) ValueError: Error when checking input: expected conv2d_1_input to have shape (256, 256, 1) but got array with shape (1, 256, 256)
same error occured when I use this code
Any one give me the solution
reshape the training data
train_data = train_data.reshape(6,256,256,1)
Try setting data_format= channels_last