当前位置:网站首页>Target detection model size calculation, model complexity (parameter conversion formula)

Target detection model size calculation, model complexity (parameter conversion formula)

2022-07-19 09:13:00 Pure SS

Target detection model size calculation , Model complexity ( Parameter conversion formula )

Recently, when doing target detection, we need to compare the size of the model , Because some model output results do not include model size , Only output the parameter quantity as shown in the figure
 Insert picture description here

Or this
 Insert picture description here
, And every one saved at this time epoch Of pt The file is not just the size of the parameter weight , But the whole checkpoint, Including optimizer and so on .
Therefore, I was also distressed for a long time to find a method to estimate the size of the model through the parameter quantity , Or formula , After I compare the calculation results of many models, it is more accurate ,
Parameter conversion formula : Parameter quantity * 2 / 1024 /1024( One float16 Occupy 2 Bytes , 1024 Bytes to 1k)

原网站

版权声明
本文为[Pure SS]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/200/202207170937124571.html