pypi ultralytics 8.4.225
v8.4.225 - Stop AutoBatch probing larger batches once one exceeds GPU memory (#27481)

35 minutes ago

🌟 Summary

A release focused on more efficient GPU batch-size detection, more reliable edge-model exports, and clearer deployment guidance—with no new model architecture announced.

📊 Key Changes

  • AutoBatch stops oversized GPU-memory probes: When batch=-1 tests progressively larger batches, it now skips the remaining probes after one exceeds the available memory. This avoids slow spillover into system RAM on some Windows systems and reduces unnecessary out-of-memory errors elsewhere. The selected batch size is unchanged.
  • ExecuTorch adds FP16 export: Models can now be exported in FP16 for XNNPACK, with inputs and predictions still in FP32 so existing inference code can remain unchanged. FP16 may improve speed on supported ARM CPUs; results depend on the device and runtime.
  • INT8 depth exports retain their full range: LiteRT, NXP, and ExecuTorch fixes prevent depth predictions from being capped at the farthest depth seen during calibration, improving behavior on scenes with greater depth.
  • Inference and tracking fixes: Object counting now determines IN/OUT direction correctly across slanted lines. The release also fixes delayed track removal, OpenVINO rotated-box NMS on ARM CPUs, and TensorFlow GraphDef prediction when export metadata is missing.
  • Broader deployment guidance: Integration docs were extensively refreshed for formats including NXP, ST Edge AI, TensorFlow GraphDef, and ExecuTorch. They clarify supported tasks, precision options, setup, output behavior, and limitations. Rust inference docs also describe the current Intel device names, xpu and npu.
  • Platform annotation guidance updated: Docs cover Xiaomi-Lens-0, stopping predictions, and current model recommendations. Training guidance also explains how to start a fresh run from weights after early stopping.
  • 16-bit image and web-runtime notes clarified: Dataset docs explain how 16-bit TIFF values are loaded and when to rescale them. LiteRT.js documentation now specifies browser support and clarifies that it does not run in Node.js.

🎯 Purpose & Impact

  • Less wasted time and memory during training setup: AutoBatch avoids running probes that cannot contribute to its batch-size estimate.
  • More deployment choices: FP16 ExecuTorch exports offer another precision option, while the depth fixes help INT8 exports represent scenes beyond their calibration range.
  • Fewer surprises across devices and formats: Inference fixes improve correctness, and the updated docs make export requirements and runtime limitations easier to understand before deployment.

What's Changed

  • Update VLM Leaderboard results in Platform annotation docs by @glenn-jocher in #27456
  • Platform docs: Xiaomi-Lens-0, stop a running Predict, every annotation model on /v1/predict; continue training after early stopping by @pderrenger in #27459
  • Auditor 2026-12-01: three precision fixes to the early-stopping and Stop docs by @UltralyticsAssistant in #27467
  • Stop TensorFlow .pb models from loading another export's image size, task or class names by @raimbekovm in #27460
  • Change YouTube video link in region-counting docs by @RizwanMunawar in #27461
  • Fix ObjectCounter IN/OUT on slanted lines, one-frame-late track removal, and OpenVINO OBB NMS on ARM CPUs by @sohailshk in #27464
  • Update the Rust inference docs for ultralytics-inference 0.0.63 by @onuralpszr in #27472
  • Show the Ultralytics Platform export hint when an ST Edge AI export fails by @glenn-jocher in #27473
  • Explain Platform's default augmentation, rerunning a cancelled training, and class colors by @glenn-jocher in #27475
  • Document 16-bit TIFF input behavior for YOLO training by @Lanqiao-Luca in #27471
  • Restructure the NXP i.MX 95 integration page into the integrations template by @raimbekovm in #27476
  • Restructure the TF GraphDef integration page into the integrations template by @raimbekovm in #27468
  • Restructure the TensorFlow.js integration page into the integrations template by @raimbekovm in #27474
  • FP16 ExecuTorch exports with quantize=16, about 1.8x faster on ARM CPUs by @JakeStevens in #27478
  • Restore full-range depth in INT8 LiteRT and NXP depth exports by @raimbekovm in #27480
  • Restructure the ST Edge AI integration page into the integrations template by @raimbekovm in #27465
  • Fix metadata-less nms=False TF GraphDef predict and the ExecuTorch INT8 depth ceiling by @glenn-jocher in #27482
  • Stop AutoBatch probing larger batches once one exceeds GPU memory by @Nikhi00718 in #27481

New Contributors

Full Changelog: v8.4.224...v8.4.225

Don't miss a new ultralytics release

NewReleases is sending notifications on new releases.