Error while loading the image


I am trying to fine-tune this. I am getting this error while loading the data. Please let me know how to go on with this.

Thanks in advance :slight_smile:


Loaded (1) images of size (480, 640, 4).
Traceback (most recent call last):
File “”, line 34, in
outputs = predict(model, inputs)
File “/home/kbdp5524/Downloads/DenseDepth-master/”, line 12, in predict
predictions = model.predict(images, batch_size=batch_size)
File “/home/kbdp5524/anaconda3/envs/densedepth/lib/python3.7/site-packages/keras/engine/”, line 1441, in predict
x, _, _ = self._standardize_user_data(x)
File “/home/kbdp5524/anaconda3/envs/densedepth/lib/python3.7/site-packages/keras/engine/”, line 579, in _standardize_user_data
File “/home/kbdp5524/anaconda3/envs/densedepth/lib/python3.7/site-packages/keras/engine/”, line 145, in standardize_input_data
ValueError: Error when checking input: expected input_1 to have shape (None, None, 3) but got array with shape (480, 640, 4)

It seems you are using Keras, so you might get a better answer in their discussion board or on StackOverflow. :wink:

1 Like