Robert-JunWang / Pelee

Pelee: A Real-Time Object Detection System on Mobile Devices
Apache License 2.0
885 stars 254 forks source link

Calculation of number of parameter, macc, and flops #73

Open TommyHuang821 opened 5 years ago

TommyHuang821 commented 5 years ago

Hi Robert,

I have some problems in calculation of number of parameter, macc, and flops. How do you calculate number of parameter, macc, and flops? Does any open tool can use for this?

In original paper of MobileNetv1, the 569 M is number of Mult-Adds (macc). Your repository (https://github.com/Robert-JunWang/PeleeNet ) shows 569M in FLOPs. Flops is different with Mult-Adds (FLOPS usually be twice of Mult-Adds). Which is correct?

Thanks, Tommy

WongKinYiu commented 5 years ago

image

Robert-JunWang commented 5 years ago

I have thought macc and flops are the different terms for the same things. The parameters and FLOPs are counted by a python tool developed by myself. For Caffe model, you can use the following link to get the number of parameters and FLOPs. https://dgschwend.github.io/netscope/#/editor

TommyHuang821 commented 5 years ago

I also develop a python tool (not ready for public) for parameter and macc by myself. I'm just curious in how to show these number with the fair comparison. Thank you.

.