I am trying to run this repository. And, trying to test with my own data. While I was trying to do it, I am getting this error:
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)
This is the test.py and train.py code
Can anyone please help me through this. I am new to coding :)
None
in a shape means any shape is allowed there. In this case, your net accepts as input images of any width/height – GPhilo