pypi ultralytics 8.4.219
v8.4.219 - Native detection mAP matches pycocotools to machine precision (#27370)

52 minutes ago

🌟 Summary

Release v8.4.219 makes model evaluation more accurate and efficient, improves reliability across several export and inference backends, and refreshes key user and developer documentation.

📊 Key Changes

  • COCO-style evaluation now matches pycocotools: The native scorer agrees within machine precision across detection boxes, segmentation, and pose results. CPU scoring is about 2.6× faster, with 76% fewer peak memory allocations for detection and segmentation.
  • More complete validation results: With save_json=True, model.val() now includes small-, medium-, and large-object mAP in its returned metrics, alongside the existing headline metrics.
  • Improved input and runtime handling: Training, validation, prediction, and export now accept NumPy scalar arguments. LiteRT and MNN also better limit CPU threads to the CPUs available to the process, helping avoid oversubscription in containers and restricted environments.
  • Export and deployment fixes: OpenVINO exports now provide decoder metadata that works better with OpenVINO Model API and DL Streamer. PaddlePaddle OBB and depth inference receives fixes for incorrect results on affected x86 CPUs. INT8 is no longer accepted for TensorFlow SavedModel export; use LiteRT for INT8 exports.
  • Rust inference documentation expanded: It now covers object tracking, adjustable tile overlap, and language-specific OCR options.
  • Documentation and setup guidance refreshed: Updates include Windows-friendly Platform API-key instructions, published YOLO26 device benchmarks, corrected architecture and fine-tuning guidance, and refreshed Platform deployment screenshots.

🎯 Purpose & Impact

  • Trust evaluation results more: Matching pycocotools makes Ultralytics’ native COCO metrics more comparable with a widely used reference, while reducing validation time and memory use.
  • Get more useful validation data: The added object-size metrics make it easier to see how a model performs on small, medium, and large objects.
  • Deploy more reliably: Backend fixes and CPU-aware thread limits reduce the chance of incorrect outputs or wasted CPU resources in constrained environments.
  • Find the right deployment path: Clearer export guidance helps users choose supported precision and format combinations and compare YOLO26 performance across devices.

Note: A separate proposed change to AP calculation was reverted before this release, so it is not part of these updates.

What's Changed

  • Refresh the Platform deployment screenshots that showed COCO examples by @glenn-jocher in #27343
  • Platform docs: set the API key on Windows or with yolo login, Batch Annotation samples, training readiness, model AI buttons by @pderrenger in #27345
  • Update the Rust Inference docs for ultralytics-inference 0.0.61 with tracking, tile overlap and OCR language models by @onuralpszr in #27351
  • Correct the YOLO architecture guide against the model configs and the YOLO26 paper by @raimbekovm in #27344
  • Correct the fine-tuning guide against the trainer: auto lr formula, two-stage weights path, validation and class-id checks by @raimbekovm in #27346
  • Return small-, medium- and large-object mAP from model.val with save_json by @raimbekovm in #27348
  • Accept NumPy scalar arguments in model.train, val, predict and export by @MohammadHijjawi97 in #27342
  • Reject INT8 for TensorFlow SavedModel export and point to LiteRT by @raimbekovm in #27349
  • Docs: list Explore tabs in their live order by @glenn-jocher in #27354
  • Docs: published YOLO26 device benchmarks, Platform FP32-only export formats, refreshed Platform screenshots by @pderrenger in #27357
  • Link the Rust inference OCR scripts to the OCR guide instead of listing script codes by @onuralpszr in #27361
  • Limit LiteRT interpreter threads to the CPUs available to the process by @raimbekovm in #27360
  • Remove legacy social icon footers from docs pages by @glenn-jocher in #27363
  • Let OpenVINO Model API and DL Streamer pick the right decoder for OpenVINO exports by @adrianboguszewski in #27362
  • Limit MNN CPU threads to the CPUs available to the process by @raimbekovm in #27358
  • Restructure the MNN integration page into the integrations template by @raimbekovm in #27355
  • Restructure the PaddlePaddle integration page into the integrations template by @raimbekovm in #27359
  • Update all READMEs for accuracy and consistency by @glenn-jocher in #27364
  • Fix the Rust YOLO example build and dynamic-shape crash, and correct docs speed notes by @glenn-jocher in #27365
  • Correct PaddlePaddle OBB and depth results on x86 CPUs, and make the DL Streamer guide work with current exports by @glenn-jocher in #27367
  • Score AP at COCO's recall thresholds so a perfect detector gets 1.0 by @MohammadHijjawi97 in #27368
  • Revert AP computation change from #27368 by @glenn-jocher in #27369
  • Skip the PaddlePaddle oneDNN pass workaround on CPUs without oneDNN by @raimbekovm in #27366
  • Native detection mAP matches pycocotools to machine precision by @glenn-jocher in #27370

Full Changelog: v8.4.218...v8.4.219

Don't miss a new ultralytics release

NewReleases is sending notifications on new releases.