Comparison
fvcore vs thop vs torchprofile
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 fvcoreA tool to count the FLOPs of PyTorch model.
Likely abandoned. No release or commit for years (last release over 4 years ago).
$
pip install thopCount 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 torchprofileIn short
- thop looks abandoned: avoid it for new projects.
- fvcore is the most used: 771.6K downloads a month.
- Maintenance is comparable: torchprofile 34, fvcore 31 on Pythie’s Index.
Side by side
| Metric | fvcore | thop | torchprofile |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 31 | 23 |