New Release: Ultralytics v8.3.182

Title: Ultralytics v8.3.182 — Partial Typing, Stronger SAM Reliability, and Easier Mask Plotting

Summary
Ultralytics v8.3.182 marks the package as “partially typed” for improved IDE and type-checker support, and brings robustness and usability upgrades to SAM image sizing and mask plotting. No breaking changes—just smoother workflows and clearer docs.

New Features

Improvements

Bug Fixes

  • Stability improvements for SAM-related workflows after imgsz changes, preventing feature map mismatches and smoothing mask/prompt behavior across batches.

Tip
You can now plot masks on CPU without a torch image tensor:
annotator.masks(np_masks, colors, im_gpu=None, alpha=0.5)

Why this matters

  • Better developer experience: richer autocompletion, fewer false positives from type-checkers, and a clear “partial typing” signal.
  • More robust SAM/SAM2 workflows: fewer shape mismatches after imgsz changes.
  • Easier CPU-only visualization: render segmentation masks directly from NumPy arrays.
  • Clearer training setup: less confusion around imgsz and rect across YOLO and RT-DETR.
  • Safe to upgrade: no core behavioral changes—quality-of-life focused.

Getting started

Call for feedback
Please upgrade to v8.3.182, try the new typing hints, SAM improvements, and CPU mask plotting, and let us know how it goes. Your feedback helps us prioritize what to improve next. Big thanks to our community contributors—this release is powered by you.

Contributors and PRs

Version

  • v8.3.182 :white_check_mark: