v8.4.176
v8.4.176 - `ultralytics 8.4.176` Keep CLIP out of YOLO-World checkpoints after set_classes (328 MB → 26 MB) (#26647)
Added 1
- ONNX GPU inference supports custom input names and strided tensors
Changed 4
- Setting YOLO-World classes no longer caches the CLIP text encoder by default, reducing yolov8s-worldv2.pt checkpoints from 328.5 MB to 25.8 MB with identical predictions after reload
- Reverted the segment validation mask thresholding change that reduced YOLO26 segmentation mAP
- nvidia-modelopt is pinned when auto-installed for TensorRT 11 export
- Documentation updated for fine-tuning, inference, precision, preprocessing, and Platform changes
Fixed 13
- Detection validation matches predictions to eligible targets in confidence order, reducing missed matches
- YOLOE fine-tuning and resume preserve trained classification heads instead of reinitializing them
- MobileSAM FP16 inference no longer produces empty masks by computing LayerNorm2d with the native kernel
- Reused SAM predictors reset state for every new image and video source
- OpenVINO NPU inference handles batch and depth outputs more reliably
- Floating-point NumPy color images work with grayscale models
- Saved videos preserve fractional frame rates, and high-FPS streams are handled correctly
- Trackers can be copied or pickled on Python 3.14 via picklable per-tracker track ID counters
- Several benchmark workflow issues were fixed, including legacy precision flags, used models, and repeated directory runs
- Channel order is corrected for ReID crops passed to embedding models
- OpenVINO NPU batch and depth inference is fixed
- Albumentations is reseeded in each DataLoader worker
- Non-ASCII class names and paths are preserved in Windows logs
1 change to check, marked in the notes below
From ultralytics
🌟 Summary
YOLO 8.4.176 makes YOLO-World checkpoints much smaller after setting custom classes, while improving reliability across validation, fine-tuning, segmentation, tracking, and model deployment.
📊 Key Changes
- YOLO-World checkpoints are dramatically smaller: Setting classes no longer caches the CLIP text encoder by default. For
yolov8s-worldv2.pt, a saved checkpoint shrank from 328.5 MB to 25.8 MB, with identical predictions after reload. Caching remains available when explicitly requested. behavior changed · inferred - More reliable validation and fine-tuning: Detection validation now matches predictions to eligible targets in confidence order, reducing missed matches. YOLOE fine-tuning and resume also preserve trained classification heads instead of reinitializing them.
- Fixes for segmentation and SAM: MobileSAM FP16 inference no longer produces empty masks. Reused SAM predictors now reset state for new images and videos. A mask-thresholding change was reverted after it reduced YOLO26 segmentation mAP.
- Improved deployment and input handling: ONNX GPU inference now supports custom input names and strided tensors; OpenVINO NPU inference handles batches and depth outputs more reliably. Floating-point NumPy images also work with grayscale models.
- Smoother video, tracking, and benchmarking: Saved videos preserve fractional frame rates, high-FPS streams are handled correctly, and trackers can be copied or pickled on newer Python versions. Several benchmark workflow issues were fixed.
- Documentation and Platform updates: Docs clarify fine-tuning, inference, and precision behavior; Platform documentation covers relevance-based dataset sorting, email changes, and AI-assisted model comparison.
🎯 Purpose & Impact
- Save storage and simplify sharing: YOLO-World users can save and move custom-vocabulary checkpoints without carrying an unnecessary CLIP encoder.
- Trust results and continue training safely: Validation matching and YOLOE resume fixes reduce misleading evaluation results and prevent trained heads from being lost.
- Get more dependable inference across devices: SAM, ONNX, OpenVINO, image inputs, and video handling work more consistently across common workflows.
- Keep segmentation metrics stable: Reverting the mask threshold avoids the measured mAP regression introduced by the earlier change.
What's Changed
- Threshold rescaled segment val masks and keep saved video duration with vid_stride by @Nicholas022400701 in https://github.com/ultralytics/ultralytics/pull/26416
- Add Hailo-8 benchmarks picture to doc by @lakshanthad in https://github.com/ultralytics/ultralytics/pull/26615
- Fix confidence-ordered validation matching for alternate targets by @Nikhi00718 in https://github.com/ultralytics/ultralytics/pull/26616
- Preserve ONNX input names and values in GPU binding by @aswanth-07 in https://github.com/ultralytics/ultralytics/pull/26618
- Fix empty MobileSAM masks in FP16 by computing LayerNorm2d with the native kernel by @raimbekovm in https://github.com/ultralytics/ultralytics/pull/26639
- Revert segment val mask thresholding from #26416 by @Laughing-q in https://github.com/ultralytics/ultralytics/pull/26645
- Make per-tracker track ID counters picklable on Python 3.14 by @raimbekovm in https://github.com/ultralytics/ultralytics/pull/26638
- Reset SAM predictor state for every new source by @raimbekovm in https://github.com/ultralytics/ultralytics/pull/26644
- Fix legacy precision flags, used models and repeat directory runs in benchmarks by @raimbekovm in https://github.com/ultralytics/ultralytics/pull/26640
- Sync docs with recent precision, preprocessing, finetuning and Platform changes by @raimbekovm in https://github.com/ultralytics/ultralytics/pull/26633
- Accept floating NumPy color images for grayscale models by @aswanth-07 in https://github.com/ultralytics/ultralytics/pull/26632
- Pin torch when auto-installing nvidia-modelopt for TensorRT 11 export by @Zephyr4772 in https://github.com/ultralytics/ultralytics/pull/26624
- Fix channel swap in ReID crops passed to embedding models by @cainiao33 in https://github.com/ultralytics/ultralytics/pull/26628
- Fix OpenVINO NPU batch and depth inference by @onuralpszr in https://github.com/ultralytics/ultralytics/pull/26641
- Keep the fused YOLOE head when resuming or re-fine-tuning PE checkpoints by @raimbekovm in https://github.com/ultralytics/ultralytics/pull/26646
- Preserve fractional and high FPS in saved videos and stream loaders by @Vaishnavi220506 in https://github.com/ultralytics/ultralytics/pull/26627
- Reseed Albumentations in each DataLoader worker by @8rulerstar in https://github.com/ultralytics/ultralytics/pull/26635
- Preserve non-ASCII class names and paths in Windows logs by @Nikhi00718 in https://github.com/ultralytics/ultralytics/pull/26626
ultralytics 8.4.176Keep CLIP out of YOLO-World checkpoints after set_classes (328 MB → 26 MB) by @raimbekovm in https://github.com/ultralytics/ultralytics/pull/26647
New Contributors
- @Zephyr4772 made their first contribution in https://github.com/ultralytics/ultralytics/pull/26624
Full Changelog: https://github.com/ultralytics/ultralytics/compare/v8.4.175...v8.4.176