pypi ultralytics 8.4.221
v8.4.221 - Return every dense-scene detection from OBB exports with nms=True (#27422)

2 hours ago

🌟 Summary

This release improves oriented-box detection in dense scenes, fixes several inference and tracking edge cases, and makes CPU-limited runs and CI more reliable.

📊 Key Changes

  • More complete OBB export detections: The main change removes a candidate limit in ONNX and TensorFlow SavedModel exports when nms=True. Dense images can now retain detections that were previously discarded before NMS. ONNX also handles empty candidate sets safely, and rotated NMS no longer relies on a candidate count fixed during tracing.
  • SAM 3 duplicate-box fix: FP16 inference now performs class-aware NMS on FP32 boxes, preventing class offsets from collapsing boxes and causing NMS to miss duplicates.
  • More reliable tracking: TrackTrack and BoT-SORT preserve track IDs across blank frames instead of incorrectly treating returning objects as new tracks.
  • Improved segment validation: Validation scores each object against its full mask, correcting under-scoring when masks overlap. Training data and loss behavior remain unchanged.
  • Better CPU performance in constrained environments: PyTorch now limits its CPU thread count to the CPUs available through affinity or container quotas. In the reported two-CPU tests, prediction and training were substantially faster.
  • Export and inference fixes: TensorFlow SavedModel exports no longer repeat detections to fill unused output rows; TensorFlow SavedModel and GraphDef inference avoid GPU-placement issues and a Python 3.13 import crash. DEEPX exports now support grayscale models, and TextRecognizer can load a prebuilt TensorRT engine directly.
  • CI and documentation updates: CI was reorganized to run export checks in parallel and improve coverage reporting. Several integration guides were also expanded or corrected.

🎯 Purpose & Impact

  • OBB users exporting with embedded NMS should see fewer missed detections in crowded or dense scenes, bringing export behavior closer to PyTorch and other backends.
  • SAM 3 and tracking fixes make predictions more dependable in common FP16 and interrupted-video scenarios.
  • CPU thread limits can prevent oversubscription—and improve speed—in containers and other CPU-restricted setups.
  • The export fixes reduce surprises across TensorFlow, DEEPX, and TensorRT workflows, including support for prebuilt OCR engines and grayscale inputs.
  • More focused CI and coverage checks should help catch regressions sooner; most documentation changes clarify existing behavior rather than add model capabilities.

What's Changed

  • Suppress SAM3 duplicate boxes for every class in FP16 NMS by @fcakyon in #27372
  • Clarify that Explore image search returns public datasets only by @glenn-jocher in #27391
  • Docs: custom class colors in Predict mode, model ID on saved monitoring examples, refreshed project screenshots by @pderrenger in #27395
  • Export grayscale models to DEEPX by @cainiao33 in #27398
  • Faster PyTorch CPU predictions and training in CPU-limited containers by @raimbekovm in #27397
  • Restructure the PyTorch TorchScript integration page into the integrations template by @raimbekovm in #27396
  • Return only NMS-selected boxes from TensorFlow SavedModel exports with nms=True by @raimbekovm in #27394
  • Stop Edge TPU exports from replacing <stem>.onnx with a normalized-box model by @raimbekovm in #27399
  • Score segment validation against full object masks with the default overlap_mask=True by @MohammadHijjawi97 in #27393
  • Stop TensorFlow SavedModel and GraphDef predictions from aborting on Python 3.13 by @raimbekovm in #27400
  • Keep TensorFlow SavedModel and GraphDef inference off the GPU so device="cpu" works on Blackwell GPUs by @raimbekovm in #27401
  • Load a prebuilt TensorRT engine in TextRecognizer by @Y-T-G in #27408
  • Restructure the Google Coral Edge TPU integration page into the integrations template by @raimbekovm in #27405
  • Runner images: current gh and Actions runner 2.338.2 by @glenn-jocher in #27410
  • Docs: where exported models are saved, Agents template default model, refreshed Agents screenshots by @pderrenger in #27411
  • Document that unzip_file() returns the file for single-file ZIP archives by @adityajai119 in #27404
  • Read .streams manifests one source per line so paths with spaces work by @harishvardhan27 in #27414
  • Update YouTube video link in distance-calculation docs by @RizwanMunawar in #27412
  • CI audit fixes: checks that couldn't fail now fail, faster CI, and bugs found in the logs and by the fuzzer by @glenn-jocher in #27417
  • Faster CI with more coverage: halve test time, count GPU, export and nightly runs by @glenn-jocher in #27424
  • Platform docs: hosted annotation models without Qwen3.8 27B, Early access VLMs, Inference transactions, split class balance by @pderrenger in #27425
  • Train YOLO-World and YOLOE from scratch on custom lvis/ datasets without a minival split by @AhmetMert01 in #27426
  • Keep track IDs through blank frames with TrackTrack and BoT-SORT by @harishvardhan27 in #27420
  • Docs: drop the stale replicate row from the coverage table by @glenn-jocher in #27428
  • Fix JetPack 4 Docker image crash at exit with the LLVM 10 OpenMP runtime by @glenn-jocher in #27429
  • Return every dense-scene detection from OBB exports with nms=True by @MohammadHijjawi97 in #27422

New Contributors

Full Changelog: v8.4.220...v8.4.221

Don't miss a new ultralytics release

NewReleases is sending notifications on new releases.