Skip to content

detect.py - images always saved #2029

@taqpoly2

Description

@taqpoly2

Hello, thanks for this incredible tool.

It seems that in detect.py save_img is always set to True - the piece of code in this piece of code.below is default
Btw It would be nice to have option to switch saving images in script call like detect.py --saveimages. Thanks.

Set Dataloader

vid_path, vid_writer = None, None
if webcam:
    view_img = True
    cudnn.benchmark = True  # set True to speed up constant image size inference
    dataset = LoadStreams(source, img_size=imgsz)
else:
    save_img = True
    dataset = LoadImages(source, img_size=imgsz)

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleStale and schedule for closing soonbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions