Segment Anything V3

Description

This operator provides open-vocabulary object detection and instance segmentation. Without task-specific pretraining, it detects and segments target objects in an image from English text descriptions.

Overview

Detects and segments open-vocabulary objects in color images from text prompts.

Scenarios

  • Rapidly detecting specific object classes (e.g. "screw", "crack") without retraining

  • Zero-shot instance segmentation for diverse defect types in industrial quality inspection

  • Building multi-class segmentation pipelines by specifying multiple comma-separated text prompts

  • Prototyping and validating whether a target object can be reliably detected and segmented by a vision model

Inputs and Outputs

Inputs

Image: An RGB 3-channel color image (ColorImage type). Only a single image input is supported; batch input is not accepted. The image is internally converted to PIL format before being fed to the model.

Outputs

Detection Results: A list of DetectInstance detection results. Each instance contains the target’s polygon contour, minimum area bounding rectangle (min_area_rect), confidence score, and class information. Results have been deduplicated via NMS and can be directly overlaid on the scene view.

Parameters

Initialization Parameters

Weight File

Description

Selects the SAM3 model file used for open-vocabulary detection and instance segmentation.

Tuning Instructions

A loadable model is required; nodes share the same model-and-device combination.

Download Link

Parameter Range

Options: .pt

Parameter Range

Values/Range:

  • .pt

Enable GPU Acceleration

Description

Controls whether model inference runs on a GPU or CPU.

Tuning Instructions

When enabled, CUDA is preferred; inference falls back to CPU if CUDA is unavailable.

Parameter Range

Default: True

Run Parameters

Text Prompt

Description

Provides text prompts separated by English commas.

Tuning Instructions

Used only when Recognition Scenario is Custom; empty content causes execution to fail.

Confidence Threshold

Description

Sets the minimum confidence required to retain a segmentation result.

Tuning Instructions

Only preliminary results scoring above this value are retained.

Parameter Range

[0.0, 1.0], Default: 0.5

Parameter Range

Values/Range: [0.0, 1.0]

Default: 0.5

NMS IoU Threshold

Description

Sets the IoU threshold for bounding-box non-maximum suppression.

Tuning Instructions

Values above 1 skip NMS; otherwise, bounding-box NMS uses this threshold.

Parameter Range

[0.0, 1.1], Default: 0.7

Parameter Range

Values/Range: [0.0, 1.1]

Default: 0.7

Recognition Scene

Description

Selects a built-in recognition scenario or custom prompts.

Tuning Instructions

Custom reads Custom Prompts; the other options use prompts built into the node.

Parameter Range

Options: Bag, Box, Merchandise, Custom, Default: Custom

Parameter Range

Values/Range:

  • Bag

  • Box

  • Merchandise

  • Custom

Default: Custom