ultralytics v8.4.190

v8.4.190

v8.4.190 - `ultralytics 8.4.190` Mask-IoU-aware label assignment for YOLO26-seg (#26773)

Added 2
  • RKNN INT8 export is now supported for depth models, with hybrid precision keeping error-prone layers in FP16
  • English Tesseract OCR data is included in the CPU runner image
Changed 6
  • YOLO26-seg positive training matches now consider both box and mask overlap when assigning labels, with mask decoding limited to control memory use and safer precision to avoid numerical overflow
  • Segmentation models other than YOLO26-seg and inference/export behavior are unchanged by the mask-aware label assignment
  • OpenVINO CPU inference prefetches upcoming batches while the current batch runs
  • COCO mask RLE encoding is vectorized in segment validation save_json, reducing encoding time
  • Semantic single_cls rejection is raised before the mask scan
  • Platform documentation is updated for partial clones, predict examples, providers, and the mobile import link
Fixed 8
  • Duplicate detections in CoreML segmentation NMS exports are fixed
  • Float64 CoreML outputs no longer crash inference on MPS
  • CoreML inference no longer triggers an unnecessary NumPy downgrade
  • Precision issue in FP16 oriented-box (OBB) embedded NMS is fixed
  • AutoBatch memory accounting is corrected so batch sizes are chosen from the GPU memory available to the process
  • NDJSON conversion skips unlabeled classification images instead of assigning them class 0 behavior changed · inferred, marked in the notes below
  • FastSAM handles text prompts when no masks qualify
  • SolutionAnnotator no longer crashes on floating-point region coordinates

2 changes to check, marked in the notes below

From ultralytics

🌟 Summary

YOLO 8.4.190 improves YOLO26 segmentation training by making label assignment consider mask quality as well as box overlap, alongside fixes for model export, inference, training utilities, and data handling.

📊 Key Changes
  • 🎭 YOLO26-seg mask-aware training: Positive training matches now account for both box and mask overlap. The implementation limits mask decoding and uses safer precision to control memory use and avoid numerical overflow. Other segmentation models and inference/export behavior are unchanged. behavior changed · inferred
  • 📱 More reliable CoreML support: Fixes address duplicate detections in segmentation exports, floating-point output crashes on MPS, and unnecessary NumPy downgrades during inference. Oriented-box NMS also receives a precision fix.
  • 🧠 RKNN depth INT8 export: Depth models can now be exported in INT8, with hybrid precision to keep error-prone layers in FP16. Calibration should use paired depth maps covering the deployment scene’s depth range.
  • ⚡ Inference and training improvements: OpenVINO CPU inference can load upcoming batches while the current batch runs. AutoBatch better accounts for GPU memory available to the process when selecting a batch size.
  • 🗂️ Data and usability fixes: NDJSON conversion skips unlabeled classification images instead of treating them as class 0. FastSAM handles text prompts when no masks qualify, and region-drawing solutions accept floating-point coordinates. behavior changed · inferred
  • 🚀 Faster segmentation validation: COCO mask RLE encoding is vectorized, reducing encoding time in tested workloads.
  • 📚 Documentation and tooling: Platform docs clarify dataset and project cloning options, mobile export links, and annotation model comparisons. The CPU runner also includes English Tesseract data for scanned-PDF workflows.
🎯 Purpose & Impact
  • YOLO26 segmentation training can make assignments that better reflect mask quality, while keeping mask-specific work bounded in computation and memory.
  • Users exporting or running models on Apple and Rockchip hardware should encounter fewer precision-related issues and gain support for depth-model INT8 export on RKNN.
  • Better batch sizing and CPU prefetching may improve GPU utilization and OpenVINO CPU throughput, while the data and prompting fixes prevent common failures or misleading labels.
What's Changed
New Contributors

Full Changelog: https://github.com/ultralytics/ultralytics/compare/v8.4.189...v8.4.190

View original

Upgraded? How did it go?

Discussion