Skip to content

v2.2.1 - Release 2.2.1 (#182)

Choose a tag to compare

@github-actions github-actions released this 27 Sep 21:53
· 1 commit to main since this release
fe279ba

🌟 Summary

THOP 2.2.1 improves operation-count estimates for models with adaptive max pooling or bilinear layers, without changing reported counts for Ultralytics’ buildable model configurations.

📊 Key Changes

  • Fixed stride-based profiling: Adaptive max pools and nn.Bilinear are now treated as fixed-size operations during extrapolation.
  • Released as ultralytics-thop 2.2.1: Publishes the profiling fix from PR #181.
  • Validated existing model counts: Ultralytics model FLOPs remained bit-identical across all buildable configuration files.

🎯 Purpose & Impact

  • 📏 Prevents FLOPs from being overcounted when profiling models with these layers.
  • 🔍 Makes complexity estimates more reliable for users comparing or evaluating affected models.
  • ✅ Does not change model architectures or the reported FLOPs for the tested Ultralytics configurations.

What's Changed

Full Changelog: v2.2.0...v2.2.1