-
Notifications
You must be signed in to change notification settings - Fork 527
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
Maybe a bug? #34
Comments
is equivalent to
This is exactly the same as count_hooks.py#L23. I didn't see any difference. |
The code I test by Py-OpCounter is as follows:
And the output is
While I use "comput_flops" function in EXTD,
I got the result:
EXTD has a module that is iteratively used during forward. I don't know if it affects the calculation of OpCounter. |
Nice catch. I realize instead of
It should be
to support iteratively forward structures. I have fixed in recent commit. Can you upgrade thop and try again? |
Thanks! I have tried again and the problem is solved now! |
I use the tools to count FLOPs for EXTD-pytorch
The FLOPs result is different from the result computed by EXTD-pytorch which has code for computing flops as follows:
The result by OpCounter is 1.084G, while 11.15G by above code.
Input size is 640x640
The text was updated successfully, but these errors were encountered: