New Release: Ultralytics v8.3.226

Ultralytics v8.3.226 β€” Security-first release, safer parsing, custom Albumentations, and smoother NCNN export :locked::rocket:

Quick summary: v8.3.226 focuses on security and reliability by replacing unsafe eval() across the codebase, while adding Python API support for custom Albumentations, simplifying NCNN export via the PNNX Python interface, stabilizing multi-GPU training, and improving installer logs and docs. YOLO11 remains the latest stable and recommended Ultralytics model for all use cases.

Highlights

  • Security-first: eval() fully replaced with safe parsing using ast.literal_eval() across configs, loaders, image size checks, and Triton utils.
  • New: Custom Albumentations via a Python augmentations parameter in model.train(...).
  • Simpler deployment: NCNN export now uses the PNNX Python package directly, with clearer logs.
  • Stability: DDP final_epoch fix for val=False and safer default Matplotlib settings for analytics.
  • UX and docs: Improved requirement checks and logs, link hygiene across docs, and a new one-click KITTI training notebook for YOLO11.

New Features :sparkles:

Security & Parsing :locked_with_key:

  • All eval() usage replaced with ast.literal_eval() for deterministic, safe parsing:
    • Config parsing via cfg.smart_value() is now secure.
    • Webcam sources like "0" are safely parsed as integers.
    • Image sizes like "[640, 640]" parse predictably.
    • Triton model metadata parsing is hardened.
  • Track the main change in Replace eval() with ast.literal_eval() by @onuralpszr.

Improvements :hammer_and_wrench:

Bug Fixes :lady_beetle:

Try it now :rocket:

Upgrade to the latest version:

pip install -U ultralytics

Example: use custom Albumentations directly from Python

import albumentations as A
from ultralytics import YOLO

model = YOLO("yolo11n.pt")
custom_transforms = [
    A.Blur(blur_limit=7, p=0.5),
    A.CLAHE(clip_limit=4.0, p=0.5),
]
model.train(data="coco8.yaml", epochs=100, imgsz=640, augmentations=custom_transforms)

Resources :books:

What’s Changed (PRs and authors)

Thanks and feedback :speech_balloon:

Huge thanks to the YOLO community and Ultralytics team for the contributions in v8.3.226. Please upgrade, try the new features, and share your experience or questions in our discussions. Your feedback helps us prioritize and improve future releases!