
Image segmentation on an Image from a Hub model id, auto-routing to a Transformers, ONNX or Ultralytics YOLO backend by repo contents. The sink resolves one of nine projections, from [(Segmentation, BoundingBox)] to a count.
Live segmentation overlay streamed to the browser.
Emit per-segment records from a stream as JSON.
model, so the repo must ship a segmentation model in one of the supported formats; a weights file is preferred over an ONNX export when both are present.
model is hot-swappable at runtime: a change fetches the new snapshot and frees the previous GPU allocation in place, so the first frame after a swap pays the download and load cost.
threshold is the base confidence and class_thresholds lowers or raises it per class; candidates are fetched at the minimum needed threshold and re-filtered per class.
object_classes empty keeps every class, max_classes caps the number of distinct classes kept, max_segments caps the segment count, and sort_by_area orders segments largest-first.
Automated release