yolov10 icon indicating copy to clipboard operation
yolov10 copied to clipboard

Calculating the number of parameters and FLOPs correctly

Open jameslahm opened this issue 1 year ago • 9 comments

Due to that the one-to-many head in YOLOv10 is not needed during inference, this part of params and FLOPs can be ignored. We provide the script to calculate the number parameters and FLOPs correctly. You could use that like below

python flops.py

Thanks!

jameslahm avatar Jun 03 '24 03:06 jameslahm

Thanks

Hy87380510 avatar Jun 03 '24 07:06 Hy87380510

but not have FLOPs image

Hy87380510 avatar Jun 03 '24 12:06 Hy87380510

@Hy87380510 Thanks. The FLOPs are correctly shown in our local environment. Is your code the latest version?

image

jameslahm avatar Jun 03 '24 13:06 jameslahm

The latest version of the code reports an error image

Hy87380510 avatar Jun 04 '24 02:06 Hy87380510

Thank you very much for your help, I have solved the above problem and got the corresponding parameters in the paper. image

Hy87380510 avatar Jun 04 '24 02:06 Hy87380510

Thank you very much for your help, I have solved the above problem and got the corresponding parameters in the paper. image

Hi, I have also encountered the same problem. How did you solved it?

suyx19 avatar Jun 05 '24 03:06 suyx19

image

Hy87380510 avatar Jun 05 '24 03:06 Hy87380510

你这操作不是在掩耳盗铃吗?不理解

SMDR1412 avatar Jul 30 '24 02:07 SMDR1412

pip install thop

JiaDongZou avatar Sep 07 '24 11:09 JiaDongZou