Skip to content

Improving YOLOv5 Inference Speed on CPU for Detection #13630

@gauricollab09

Description

@gauricollab09

Search before asking

Question

Hi everyone,

I'm using YOLOv5 for a logo detection. On GPU (RTX A6000), the inference speed is excellent : around 30+ FPS. However, when running on CPU (a reasonably powerful machine), the inference speed drops significantly to about 1 frame every 2 seconds (~0.5 FPS), which is too slow.

Is there a way to speed this up on CPU? Even achieving 8–9 FPS would be a huge improvement. Are there any flags, quantization techniques or runtime options you recommend?

Any suggestions if you could give would be useful. Thanks in advance!

Additional

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    detectObject Detection issues, PR'squestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions