pypi ultralytics 8.4.96
v8.4.96 - Revert #25188 and secure NDJSON paths without a prepass (#25196)

5 hours ago

🌟 Summary

Ultralytics v8.4.96 strengthens NDJSON dataset security and dramatically improves conversion speed, while adding YOLO26 depth deployment guidance, On Premise Platform documentation, and numerous reliability fixes. πŸš€

πŸ“Š Key Changes

  • πŸ” Faster and safer NDJSON conversion

    • Reverts the previous overbuilt validation approach and validates records during the existing hash scan.
    • Generates collision-free filenames from stable record indexes instead of trusting potentially unsafe source names.
    • Uses dense numeric class directories for classification datasets, while preserving original class names through a hidden metadata map.
    • Removes the extra full-dataset validation pass and avoids unnecessary path-object allocations.
    • Reported performance improves by approximately 7.8Γ— for detection and 6.8Γ— for classification compared with the reverted implementation.
  • πŸ“ YOLO26 depth support in Rust inference

    • Adds depth estimation as a supported task with yolo26n-depth.onnx.
    • Supports depth visualization options such as --colormap and --depth-viz.
    • Adds Rust API examples for reading per-pixel depth maps, valid ranges, and center-pixel depth values.
    • Updates ultralytics-inference documentation to version 0.0.29.
  • πŸš€ New Intel deployment guide

    • Documents YOLO26 deployment with Intel DL Streamer, OpenVINO, GStreamer, and Docker.
    • Includes FP32, FP16, and INT8 export examples for Intel CPUs, GPUs, and NPUs.
    • Covers GPU/NPU inference, video output, and multi-stream processing.
  • 🏒 Expanded Ultralytics Platform On Premise documentation

    • Explains how Enterprise users can connect Linux, macOS, or Windows workers.
    • Documents local dataset browsing, annotation, training, and model storage while keeping image and video pixels on the customer’s computer.
    • Adds plan metadata across Platform documentation and clarifies Enterprise capabilities.
  • 🧩 Reliability and correctness fixes

    • Results.update(probs=...) now correctly wraps probabilities in Probs, restoring methods such as summary(), plot(), and exports.
    • RT-DETR standalone validation now honors single_cls and classes.
    • Keypoints and segmentation polygons remain aligned with boxes after letterbox resizing.
    • Classification confusion matrices no longer include an irrelevant background class.
    • FastSAM no longer overwrites the first detection when handling full-image boxes.
    • Segmentation loss no longer silently skips images when instances are fewer than the batch size.
    • save_one_box() now returns crops in the requested format regardless of whether the crop is saved.
    • End-to-end NMS now correctly returns original detection indexes when return_idxs=True.
    • Tracker motion compensation, trainer recovery logic, TensorBoard channel handling, YOLOE visual-prompt training, and configuration validation receive targeted fixes.
  • πŸ“š Documentation improvements

    • Adds clearer semantic segmentation dataset guidance, including the masks/ folder fallback behavior.
    • Corrects augmentation and export argument tables and updates the tracker default to tracktrack.yaml.
    • Labels many documentation examples as text for improved rendering and readability.
    • Updates CoreML and LiteRT mobile benchmarks to include YOLO26 Depth results.

🎯 Purpose & Impact

  • Safer dataset processing: Untrusted NDJSON filenames and class names can no longer control generated filesystem paths, reducing traversal and collision risks. πŸ›‘οΈ
  • Faster large-dataset workflows: NDJSON conversion avoids redundant scans and scales much better for millions of records.
  • Broader YOLO26 deployment: Users can now more easily run depth estimation on Rust, Apple, Android, and Intel hardware.
  • Better production flexibility: Enterprise customers can train through the Ultralytics Platform while keeping sensitive data and compute on premise.
  • More dependable APIs and results: Several fixes prevent confusing runtime errors, incorrect metrics, misaligned outputs, and silently dropped training data.
  • Clearer documentation: Updated examples, defaults, benchmarks, and platform plan labels make setup and deployment easier for both new and experienced users. βœ…

What's Changed

New Contributors

Full Changelog: v8.4.95...v8.4.96

Don't miss a new ultralytics release

NewReleases is sending notifications on new releases.