pypi ultralytics 8.4.7
v8.4.7 - `ultralytics 8.4.7` AVIF training and new COCO12-Formats dataset (#23358)

13 hours ago

🌟 Summary

Ultralytics v8.4.7 adds AVIF training support and a new COCO12-Formats mini-dataset to continuously verify that all supported image types load correctly end-to-end (especially in CI) πŸ§ͺπŸ–ΌοΈ

πŸ“Š Key Changes

  • AVIF is now a supported training image format βœ…πŸ“·
    • IMG_FORMATS expanded to include avif
  • More robust image decoding for modern formats πŸ›‘οΈ
    • Adds a Pillow-based fallback image reader (_imread_pil) for cases where OpenCV can’t decode AVIF/HEIC
  • New β€œCOCO12-Formats” dataset + generator script 🧰
    • A tiny 12-image dataset covering all supported extensions (AVIF, BMP, DNG, HEIC, JP2, JPEG, JPG, MPO, PNG, TIF, TIFF, WebP)
    • Includes a dataset YAML and a generator (generate_coco12_formats.py) to build the set for testing/validation
    • Adds a dedicated docs page and links it in the dataset index πŸ“š
  • Training and tooling reliability improvements πŸ”§
    • Fixes loss image-size calculation for OBB and Pose26 multi-scale training πŸ“
    • Fixes semantic segmentation masking/indexing for overlapping instances 🧩
    • More accurate optimizer parameter-group logging 🧾
    • Adds retry + validation for dataset image downloads (NDSON) πŸ”πŸ“₯
  • Install/export stability & experiment tracking πŸ“¦πŸ“ˆ
    • Pins torch < 2.10 to prevent ExecuTorch export incompatibilities 🧷
    • Saves runs under runs/ by default for relative projects + improves W&B traceability πŸ—‚οΈ
  • Docs updates (large) πŸ“βš‘
    • Docs images migrated to a CDN and improved alt text for accessibility/SEO

🎯 Purpose & Impact

  • Train directly on AVIF images without manual conversion πŸŽ‰
    • Useful for modern web/phone pipelines where AVIF is common
  • Fewer β€œit works on my machine” image-loading failures 🧯
    • The new COCO12-Formats dataset is designed to catch format-specific decoding issues early, especially in CI/CD
  • Better resilience across environments 🌍
    • Pillow fallback reduces dependence on how OpenCV was built (many prebuilt OpenCV wheels lack AVIF support)
  • More reliable training & clearer debugging πŸ”
    • Fixes reduce subtle scaling bugs (Pose/OBB), segmentation masking issues, and misleading optimizer logs
  • Smoother installs/exports and cleaner run management πŸš€
    • Dependency pin helps prevent breakage; run folder changes improve organization and experiment tracking

What's Changed

New Contributors

Full Changelog: v8.4.6...v8.4.7

Don't miss a new ultralytics release

NewReleases is sending notifications on new releases.