computervisioneng / train-yolov8-custom-dataset-step-by-step-guide

GNU Affero General Public License v3.0
256 stars 112 forks source link

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

Open adityasomic opened 1 year ago

adityasomic commented 1 year ago

Hello @computervisioneng ,

Thank you very much for your tutorial, While I was running your script 'predict_video.py' I am getting this error on line 14

H, W, _ = frame.shape

Error: AttributeError: 'NoneType' object has no attribute 'shape'

Could you please help me with this, Thanks

computervisioneng commented 1 year ago

Are you getting that error when trying to read the first frame in the video?

sauro1997 commented 1 year ago

I am getting the same error If someone have fix it how you have done it :) i'm a beginner