github ultralytics/ultralytics v8.2.48
v8.2.48 - `ultralytics 8.2.48` strip model `criterion` on save (#14106)

latest releases: v8.3.36, v8.3.35, v8.3.34...
4 months ago

🌟 Summary

A minor update with key improvements and refinements to model loading and processing.

📊 Key Changes

  • Improved Error Messaging: Updated error and warning messages to generalize references from "YOLOv8" models to "Ultralytics" models.
  • Model Verification: Enhanced checks to ensure files are valid Ultralytics models before processing.
  • Stripping Optimizer Function: Added and refined steps within the strip_optimizer function:
    • Replaced model with Exponential Moving Average (EMA) if available.
    • Stripped unnecessary components (optimizer, loss criterion, etc.) to reduce file size.
    • Converted specific attributes to ensure compatibility and effective usage.

🎯 Purpose & Impact

  • Improved Clarity: The changes in messaging make it clearer for users regardless of which version of the model they are using, reducing potential confusion.
  • Efficient Model Handling: By verifying model validity and stripping non-essential parts, the update ensures smoother operations and smaller file sizes, potentially leading to faster loading times and less storage usage.
  • Enhanced Flexibility: The refined error and warning messages allow for a more robust handling of various model scenarios, increasing the flexibility and robustness of the software for users.

What's Changed

Full Changelog: v8.2.47...v8.2.48

Don't miss a new ultralytics release

NewReleases is sending notifications on new releases.