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:

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:

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