ultralytics-thop
Ultralytics THOP package for fast computation of PyTorch model FLOPs and parameters.
Ultralytics THOP package for fast computation of PyTorch model FLOPs and parameters.
To install this package, run one of the following:
THOP offers an intuitive API designed to profile PyTorch models by calculating the total number of MACs and parameters. This functionality is vital for assessing the computational efficiency and memory footprint of deep learning models, helping developers optimize performance for deployment, especially on edge devices. Understanding these metrics is key to selecting the right model architecture, a topic explored in our model comparison pages.
Summary
Ultralytics THOP package for fast computation of PyTorch model FLOPs and parameters.
Last Updated
Nov 4, 2025 at 13:57
License
AGPL-3.0-only
Supported Platforms
GitHub Repository
https://github.com/ultralytics/thopDocumentation
https://docs.ultralytics.com