Error while loading the image

Hello,

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:

Error:

Loaded (1) images of size (480, 640, 4).
Traceback (most recent call last):
File “test.py”, line 34, in
outputs = predict(model, inputs)
File “/home/kbdp5524/Downloads/DenseDepth-master/utils.py”, 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/training.py”, line 1441, in predict
x, _, _ = self._standardize_user_data(x)
File “/home/kbdp5524/anaconda3/envs/densedepth/lib/python3.7/site-packages/keras/engine/training.py”, line 579, in _standardize_user_data
exception_prefix=‘input’)
File “/home/kbdp5524/anaconda3/envs/densedepth/lib/python3.7/site-packages/keras/engine/training_utils.py”, line 145, in standardize_input_data
str(data_shape))
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