Comparison
fvcore vs torchprofile vs ultralytics-thop
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Collection of common code shared among different research projects in FAIR computer vision team
Low maintenance activity. Last release over 3 years ago, commits in 3 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install fvcoreCount the MACs / FLOPs of PyTorch models
Low maintenance activity. Last release 9 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install torchprofileUltralytics THOP package for fast computation of PyTorch model FLOPs and parameters.
Actively maintained. Last release 4 weeks ago, commits in 19 of the last 26 weeks. A safe choice.
pip install ultralytics-thopIn short
- ultralytics-thop is the most used: 4.8M downloads a month, 6.4× more than fvcore.
- ultralytics-thop also has the best Pythie’s Index (92).
- Safe default for a new project: ultralytics-thop.
Side by side
| Metric | fvcore | torchprofile | ultralytics-thop |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 31 | 34 |