pypi ultralytics 8.3.204
v8.3.204 - `ultralytics 8.3.204` Scope `batch_size` check from `select_device()` to Trainer (#22254)

6 hours ago

🌟 Summary

YOLO 8.3.204 sharpens training ergonomics, stabilizes exports, broadens device support, and refreshes docsβ€”making multi-GPU projects, ONNX workflows, and edge deployments smoother than ever. πŸš€

πŸ“Š Key Changes

  • πŸ”„ Trainer batch handling upgrade: The primary update from @Laughing-q moves multi-GPU batch checks out of select_device() and into the Trainer, requiring explicit batch sizes when using more than one GPU and delivering clearer error guidance.
  • 🧠 YOLOE segmentation workflow: New YOLOESegTrainerFromScratch, cleaner loss initialization, and shared preprocessing streamline from-scratch and fine-tune training paths.
  • πŸ“ Export & device refinements: CUDA-aware ONNX opset selection (fewer runtime errors), TensorFlow/ONNX NMS guards, image-size propagation during export, plus safer non_blocking transfers on MPS.
  • πŸ“¦ Lean inference weights: strip_optimizer() now removes AMP scaler state, trimming checkpoint clutter.
  • 🌐 Streamlit edge support: RKNN/OpenVINO detection works reliably in the live inference app, benefiting Rockchip deployments.
  • πŸ“š Docs & metadata refresh: New YOLO26 preview page, updated YOLO11 FLOPs/parameters, clarified YAML guide, and accurate contributor credits.

🎯 Purpose & Impact

  • βœ… More predictable multi-GPU runs: Users must set a real batch size, preventing silent defaults and helping balance workloads across GPUs.
  • πŸ›‘οΈ Stabler model exports: GPU ONNX exports throw fewer errors, NMS requirements are explicit, and exported engines now honor your chosen imgsz, reducing mismatches in production.
  • βš™οΈ Broader device compatibility: Adjusted tensor transfers eliminate MPS corruption, while RKNN support speeds up Rockchip deployments via Streamlit.
  • πŸ§ͺ Enhanced YOLOE training flexibility: Dedicated trainers and cleaned-up loss logic make experimenting with YOLOE segmentation (YOLO11-Seg, etc.) easier and more torch.compile-friendly.
  • πŸ“Š Cleaner release assets: Stripped checkpoints load faster for inference without lingering AMP baggage.
  • πŸ“– Up-to-date guidance: YOLO26 sneak peek and refreshed YOLO11 metrics help teams plan upgrades with accurate performance data.

What's Changed

New Contributors

Full Changelog: v8.3.203...v8.3.204

Don't miss a new ultralytics release

NewReleases is sending notifications on new releases.