DeepLabV3Plus-Pytorch icon indicating copy to clipboard operation
DeepLabV3Plus-Pytorch copied to clipboard

How to calculate the params and FLOPs for DeepLab of this version?

Open ljjyxz123 opened this issue 4 years ago • 4 comments

As I saw the params and FLOPs in the table, is there any function in this repo for calculating params and FLOPs?

If the function isn't in this repo, could you suggest one link that you used to calculate params and FLOPs ? @VainF

Thank you very much!

ljjyxz123 avatar Aug 19 '20 01:08 ljjyxz123

Hi @ljjyxz123 , the FLOPs in the table is calculated using https://github.com/Lyken17/pytorch-OpCounter

VainF avatar Aug 20 '20 05:08 VainF

Hi @ljjyxz123 , the FLOPs in the table is calculated using https://github.com/Lyken17/pytorch-OpCounter

Got it~

Thank you very much!

ljjyxz123 avatar Aug 20 '20 06:08 ljjyxz123

Hi @VainF, what you actually calculated with pytorch-OpCounter is MACs but not FLOPs, right? Not a very big deal but just want to get the number as accurate as possible.

yyrkoon27 avatar Jun 09 '21 02:06 yyrkoon27

Hi @VainF, what you actually calculated with pytorch-OpCounter is MACs but not FLOPs, right? Not a very big deal but just want to get the number as accurate as possible.

Hi @yyrkoon27 , thanks for your concern. The old version of Pytorch-OpCounter returns flops in default. I will update the readme with MACs to make it consistent with the latest version.

image

VainF avatar Jun 09 '21 02:06 VainF