🌟 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
ultralytics 8.2.48
strip modelcriterion
on save by @glenn-jocher in #14106
Full Changelog: v8.2.47...v8.2.48