pypi ultralytics 8.3.121
v8.3.121 - `ultralytics 8.3.121` Add FocalLoss multi-class support (#20388)

latest releases: 8.3.240, 8.3.239, 8.3.238...
7 months ago

🌟 Summary

This release introduces enhanced support for handling class imbalance with Focal Loss, improves data augmentation reliability, updates documentation, and modernizes core dependencies for a smoother user experience. ⚖️🚀

📊 Key Changes

  • Focal Loss Multi-Class Support: Focal Loss now accepts both single and per-class weighting, allowing more precise control over class imbalance during training.
  • CutMix Augmentation Fix: Corrected label selection logic in CutMix to prevent errors when mixing images with no valid labels.
  • Augmentation Documentation Update: Improved guides for CutMix and CopyPaste, with clearer explanations and dynamic argument tables.
  • Download Reliability: The system now checks if curl is installed before using it for downloads, reducing potential errors.
  • TensorRT Export Calibration: Switched INT8 calibration from "Entropy" to "MinMax" for better hardware compatibility.
  • Python 3.12 Support: Continuous integration and testing now use Python 3.12, ensuring compatibility with the latest Python features.
  • OpenVINO INT8 Export: Improved dependency handling for smoother INT8 model exports.

🎯 Purpose & Impact

  • Better Model Training: Users can now address class imbalance more effectively, especially on datasets with uneven class distributions, leading to potentially improved model accuracy.
  • Increased Reliability: Fixes and safeguards in data augmentation prevent crashes and ensure smoother training workflows.
  • Easier Learning: Updated documentation makes it simpler for users to understand and configure advanced augmentations.
  • Seamless Experience: Improved download logic and dependency management reduce setup issues and errors across different environments.
  • Future-Proofing: Upgrading to Python 3.12 and updating export processes ensures long-term compatibility and stability.

Overall, this update brings greater flexibility, reliability, and clarity to both new and advanced Ultralytics users. 🌟

What's Changed

Full Changelog: v8.3.120...v8.3.121

Don't miss a new ultralytics release

NewReleases is sending notifications on new releases.