pypi ultralytics 8.4.95
v8.4.95 - Fix restricted loading of training checkpoints (#25154)

6 hours ago

🌟 Summary

v8.4.95 improves training reliability, RT-DETR detection limits, input compatibility, and dataset usabilityβ€”headlined by safer checkpoint loading for Platform GPU jobs. πŸš€

πŸ“Š Key Changes

  • πŸ”’ Fixed restricted training checkpoint loading β€” Raw checkpoints produced by Platform GPU workers no longer include training-only loss objects or NumPy scalar metadata that can be rejected by secure weights_only=True loading.
  • 🎯 Improved RT-DETR max_det support β€” The detection limit is now correctly applied during native prediction, validation, and model exports, including CoreML and other deployment formats.
  • πŸ–ΌοΈ Expanded NumPy input compatibility β€” NumPy images with grayscale, gray-plus-alpha, BGR, or BGRA channels are now normalized to match the model’s expected channel count.
  • πŸ”’ Fixed uint8 tensor preprocessing β€” Integer image tensors are handled without invalid floating-point dtype operations, while existing floating-point normalization behavior is preserved.
  • πŸ“¦ Reduced automatic COCO downloads β€” COCO detection, segmentation, and pose datasets no longer download the optional 7 GB test2017.zip by default. Standard downloads are now approximately 20.2–20.3 GB instead of about 27 GB.
  • πŸ§ͺ Made segmentation conversion deterministic β€” Mask files are processed in sorted filename order, improving repeatability across runs.
  • πŸ“ˆ Corrected pose metric curve labels β€” Removed duplicate box labels so pose metrics align correctly with dashboards such as Weights & Biases.
  • πŸ“ Clarified prediction and embedding return types β€” Documentation and type hints now accurately indicate that streaming returns an iterator, while non-streaming calls return lists.
  • πŸ› οΈ Simplified edge-case handling β€” Empty segmentation inputs now return a valid zero box immediately.
  • πŸ“š Updated examples and training documentation β€” The ObjectCounter example now uses its returned results object, and automatic dataset download behavior is described more precisely.

🎯 Purpose & Impact

  • More dependable cloud training: Platform GPU workers can save, resume, and load raw training checkpoints more reliably, reducing avoidable job failures. βœ…
  • More predictable deployment: RT-DETR exports and validation now respect max_det, helping control output size, latency, and downstream processing requirements.
  • Fewer input-related errors: Applications using NumPy arrays or uint8 tensors can handle a wider range of camera and image formats without manual channel conversion.
  • Faster, lighter dataset setup: Most COCO users save roughly 7 GB of storage and download time because test images without public ground truth are excluded.
  • More reproducible data preparation: Deterministic mask ordering makes conversion results and debugging more consistent.
  • Clearer analytics: Correct pose labels prevent mislabeled or missing metric panels in experiment tracking tools.
  • No major model architecture change: This release focuses on reliability, compatibility, export behavior, and documentation rather than introducing a new model family. YOLO26 remains the latest recommended Ultralytics model for general use. 🌟

What's Changed

New Contributors

Full Changelog: v8.4.94...v8.4.95

Don't miss a new ultralytics release

NewReleases is sending notifications on new releases.