Swall0w / torchstat

Model analyzer in PyTorch
MIT License
1.47k stars 142 forks source link

GFLOPs of ResNet50 #24

Open songqi-github opened 4 years ago

songqi-github commented 4 years ago

When computing the GFLOPs of ResNet50, the answer is around 100GFLOPs. However, the result in other paper is around 500. Is there something wrong with your computing method?

chenxingqiang commented 1 year ago

I meet the same problesms。

saifkhichi96 commented 1 year ago

ResNet-50 has 4.12 GFLOPs (i.e., 4.12 billion floating-point operations). See: https://mmclassification.readthedocs.io/en/latest/model_zoo.html.

I get this exact value when I take resnet50 from torchvision.models and calculate its FLOPs using this library.