Skip to content

Detect source as .txt error #1877

@pngmafia

Description

@pngmafia

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!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleStale and schedule for closing soon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions