Skip to content

Why the inference speed when the image size is 224 is slower than the image size is 640? #5475

@daydayup-bit

Description

@daydayup-bit

Search before asking

Question

When i enter commandpython val.py --data container_yolo/NEU-DET/data.yaml --weights runs/train/v5s_all_new/weights/best.pt --imgsz 640,time of inference is 2.4ms,the result:
image

when i enter commandpython val.py --data container_yolo/NEU-DET/data.yaml --weights runs/train/v5s_all_new/weights/best.pt --imgsz 224,time of inference is 4.1ms,which is slower than inputing 640. the result:
image

Why the inference speed when the image size is 224 is slower than the image size is 640?
And, what are the main effects of these three parameters(pre-process,inference,NMS).Especially what affects the inference time?

Additional

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions