Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TommyHuang821 opened this issue Apr 8, 2019 · 3 comments
Open

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

TommyHuang821 opened this issue Apr 8, 2019 · 3 comments

Comments

@TommyHuang821
Copy link

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
Copy link

image

@Robert-JunWang
Copy link
Owner

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
Copy link
Author

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.

.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants