pypi ultralytics 8.4.127
v8.4.127 - Load exported YOLO models with the correct task across all 20 formats (#25886)

2 hours ago

🌟 Summary

πŸš€ v8.4.127 makes exported YOLO models reliably load with the correct task and model family, while improving deployment stability, training recovery, and dataset documentation.

πŸ“Š Key Changes

  • Correct task detection for exported models across all 20 formats by @artest08

    • Model loading now reads the task and architecture information embedded in export metadata instead of guessing from the filename or directory path.
    • Fixes segmentation exports being loaded as detection models, which previously caused masks to disappear.
    • Fixes pose exports losing keypoint outputs when weights are moved outside their training directory.
    • Correctly routes RT-DETR exports to the appropriate predictor, avoiding incorrect interpretation of its output format.
    • Applies consistently through both the Python API and CLI, making exported models safer to copy, deploy, and rename. 🎯
  • Improved OpenVINO inference reliability

    • Uses the appropriate throughput setting for single-device dynamic batching.
    • Adds a targeted fix for INT8 dynamic-shape segmentation faults on Intel AMX CPUs.
    • Reduces the risk of crashes in affected CPU inference and CI environments.
  • Safer training resume behavior

    • Resuming a run no longer replaces checkpoint weights with a custom pretrained model.
    • Preserves the actual model state, optimizer, scaler, EMA, and epoch from last.pt.
    • Restores distillation model handling during resume. πŸ”„
  • More robust result handling

    • Semantic segmentation and depth result indexing now preserves complete dense maps instead of accidentally returning only one image row.
    • Improves iteration and indexing behavior for depth and semantic results.
  • Expanded CoreML export support

    • nms=True now works for segmentation and pose exports in addition to detection.
    • Keeps masks and keypoints aligned with the boxes retained after suppression. 🍎
  • Tracking and YOLOE fixes

    • Corrects DeepOCSORT OCR appearance matching so zero-overlap objects are not incorrectly matched.
    • Aligns TrackTrack new-track prediction and confirmation behavior with its reference implementation.
    • Fixes YOLOE prompt-free segmentation training crashes during final validation.
  • Checkpoint and training reproducibility improvements

    • Custom Albumentations transforms are serialized as portable text representations rather than live Python objects.
    • YOLO26 documentation now explains the two-stage Objects365 pretraining and COCO fine-tuning process, embedded training logs, and checkpoint code revisions. πŸ“š
  • More direct Ultralytics Platform dataset access

    • Documentation now links official dataset pages for all 52 publicly hosted datasets, including detection, segmentation, pose, depth, and OBB resources.
    • Users can preview samples, inspect statistics, clone datasets, annotate, train, and deploy through the Ultralytics Platform.
  • Documentation media delivery improvements

    • Documentation images and animations now use the CMS assets CDN, improving link previews and reliability across tools such as Slack and Telegram.
    • Several demonstrations were upgraded from static images to videos.

🎯 Purpose & Impact

  • More dependable deployment: Exported models now retain their intended behavior even when renamed or moved into a different folderβ€”a common step in production workflows.
  • Correct predictions for specialized tasks: Segmentation masks, pose keypoints, and RT-DETR outputs are now handled by the correct predictors automatically.
  • Fewer interrupted training runs: Resume behavior is safer, and OpenVINO fixes reduce crashes on supported Intel hardware.
  • Better portability: Checkpoints containing custom augmentations can be loaded and shared more safely, although the original transform objects may still be needed when resuming with those augmentations.
  • Broader Apple deployment options: CoreML users can now export segmentation and pose models with integrated NMS processing.
  • Easier experimentation: Clearer YOLO26 training documentation and checkpoint metadata make it simpler to understand, reproduce, and fine-tune official models.
  • A smoother dataset workflow: Exact Platform links make it faster to move from dataset discovery to annotation, training, and deployment. πŸš€

What's Changed

New Contributors

Full Changelog: v8.4.126...v8.4.127

Don't miss a new ultralytics release

NewReleases is sending notifications on new releases.