-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
Description
When running detect.py with source as a txt it is loading the images but getting this error:
Traceback (most recent call last): File "detect.py", line 181, in <module> detect() File "detect.py", line 49, in detect dataset = LoadStreams(source, img_size=imgsz) File "/mnt1/yolo3/utils/datasets.py", line 286, in __init__ s = np.stack([letterbox(x, new_shape=self.img_size)[0].shape for x in self.imgs], 0) # inference shapes File "/mnt1/yolo3/utils/datasets.py", line 286, in <listcomp> s = np.stack([letterbox(x, new_shape=self.img_size)[0].shape for x in self.imgs], 0) # inference shapes File "/mnt1/yolo3/utils/datasets.py", line 696, in letterbox shape = img.shape[:2] # current shape [height, width] AttributeError: 'NoneType' object has no attribute 'shape'
please help!!