Skip to content

is it valuable that add --cache-images option to detect.py? #2004

@kyshel

Description

@kyshel

🚀 Feature

Add --cache-images option to detect.py like train.py

Motivation

There R about 300k images in my--source directory, when i run detect.py, I noticed that it seems like load and test images one by one , and my pc sound "pew-pew-pew-pew..." like a rushing laser weapon, maybe the disk is trembling. And it consumes a long time.

Maybe cached option(read from disk, and test direct in RAM) can speedup ? Or yolov5 has integrated this featue and just not provide visible option for users?

Pitch

Add --cache-images option to detect.py like train.py

Alternatives

Maybe add a script that make a big cache file from --src imgs?

Additional context

None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions