pypi ultralytics 8.4.9
v8.4.9 - `ultralytics 8.4.9` Hyperspectral CopyPaste augmentation (#23471)

9 hours ago

🌟 Summary (single-line synopsis)

Ultralytics v8.4.9 improves segmentation CopyPaste augmentation reliability (especially for grayscale/hyperspectral-style single-channel inputs) and strengthens the broader export/training ecosystem with better ExecuTorch + Torch support 🚀🧩

📊 Key Changes

  • 🧪 (Priority) Segmentation CopyPaste mask fix in ultralytics/data/augment.py:
    • Builds the contour mask as a 2D (H×W) array instead of matching the full image tensor shape.
    • Draws contours onto a single-channel mask using value 1 (instead of (1,1,1)), avoiding channel mismatches.
  • 🧾 Version bump: 8.4.8 → 8.4.9 🔢
  • 📦 NDJSON datasets always re-download when using ul://... URIs (instead of silently reusing a cached .ndjson) 🧹⬇️
  • ⚙️ ExecuTorch support improvements:
    • Removes the <2.10 PyTorch upper bound in dependencies (Windows still excludes torch==2.4.0) 🔓
    • Centralizes ExecuTorch install checks via check_executorch_requirements() to reduce platform-specific install failures 🧩
  • Training + compile coverage: CUDA test now trains with compile=True, and stride calculation is simplified for more predictable behavior 🧠🔥
  • 📚 Docs refresh: Export docs video updated to a more relevant YOLO26 export/deployment tutorial 🎥

🎯 Purpose & Impact

  • 🧩 More robust segmentation augmentation: prevents mask shape/channel bugs that can break or silently degrade CopyPaste-based training—especially when images are single-channel (common in grayscale and some hyperspectral pipelines) 📷✅
  • 📈 More reliable segmentation training: fewer augmentation edge cases means smoother training runs and more consistent results 🏋️‍♂️📊
  • 🧹 Less “stale dataset” confusion: always refreshing .ndjson metadata helps ensure you train/evaluate on the latest Ultralytics-hosted dataset state when using ul://... 🔄🧪
  • 🚀 Better export/inference readiness on modern stacks: improved ExecuTorch requirement handling + Torch 2.10+ compatibility reduces install friction and improves deployment workflows 📦⚙️
  • Safer compile=True usage: better test coverage helps catch regressions for users relying on PyTorch compile for potential speedups 🧠🛠️

What's Changed

Full Changelog: v8.4.8...v8.4.9

Don't miss a new ultralytics release

NewReleases is sending notifications on new releases.