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

About Number of Parameters and FLOPs #17

Closed
iris0329 opened this issue Sep 24, 2020 · 2 comments
Closed

About Number of Parameters and FLOPs #17

iris0329 opened this issue Sep 24, 2020 · 2 comments

Comments

@iris0329
Copy link

Thank you for opening the source code of this briliant work!

The values of Number of Parameters and FLOPs are shown in the paper.

I'm curious how do you calculate these two values?
Which tools/packages do you use for calculation?

Best,
Iris

@TiagoCortinhal
Copy link
Owner

Hello @iris0329!

For the Number of Parameters we used the built-in functions of Pytorch like so: sum(p.numel() for p in model.parameters() if p.requires_grad)

For the FLOPs we used this package: https://github.com/sovrasov/flops-counter.pytorch

Best,
Tiago

@iris0329
Copy link
Author

@TiagoCortinhal Thank you for your generous reply!

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

2 participants