facebookresearch / fvcore

Collection of common code that's shared among different research projects in FAIR computer vision team.
Apache License 2.0
2k stars 226 forks source link

Clarification in the nomenclature of FLOPs / MACs #133

Closed Vinayaka2k closed 1 year ago

Vinayaka2k commented 1 year ago

Hello @ppwwyyxx , @nikhilaravi

The fvcore's FlopCounterMode reports the MACs and not FLOPs right ? I tried out the tool using Resnet50 and the output came out to be around 4, which has to be the GMACs acc to the original paper but the tool reports this as FLOPs. The FLOPs would be 2 * GMACs that is 8 in this case.

I also verified the same using an alternate tool that reports GFLOPs and the forward pass GFLOPs are reported as 8, which is correct. PFA result of running Resnet50 on the alternate tool : image

PFA result of running Resnet50 on FVCORE tool : image

Vinayaka2k commented 1 year ago

Guess this is already mentioned in #69