ifnspaml / SGDepth

[ECCV 2020] Self-Supervised Monocular Depth Estimation: Solving the Dynamic Object Problem by Semantic Guidance
MIT License
200 stars 26 forks source link

AttributeError: 'NoneType' object has no attribute 'shape' #21

Open 17853313621 opened 3 years ago

17853313621 commented 3 years ago

Hello, I have encountered this problem, but I don’t know how to solve it. I hope you can give me some help. Thank you very much.

python3 train.py --model-name zhou_full --depth-training-loaders "kitti_zhou_train" --train-batches-per-epoch 7293 --masking-enable --masking-from-epoch 15 --masking-linear-increase Starting initialization Loading training dataset metadata:

klingner commented 3 years ago

Hey there,

this is an error I usually get, if the datasets' folder structure is either not correct or if some of the images are missing/broken. In this case the opencv image loading function returns a None object, which has no attribute shape. Maybe you could double check, if the datasets are set up correctly?

17853313621 commented 3 years ago

Hey there,

this is an error I usually get, if the datasets' folder structure is either not correct or if some of the images are missing/broken. In this case the opencv image loading function returns a None object, which has no attribute shape. Maybe you could double check, if the datasets are set up correctly?

Thank you very much for your reply, I will check my data set according to your reply.

bansilol commented 2 years ago

Hi @17853313621 I am facing the same issue like you. I am unable to find any broken images in the downloaded dataset so I am not sure what is causing the error. Were you able to solve the problem by downloading the data set again or did you do something else ?

Luara1 commented 1 year ago

This is because the json file is inconsistent with the folder file, and the image is missing.

Parham-Esmailzadeh commented 1 year ago

Hello, I am creating an artificial intelligence algorithm and I encountered this error:

imageHeight, imageWidth = frame.shape[:2] AttributeError: 'NoneType' object has no attribute 'shape' can you Help Me What Should I do?