Predict image masks from foreground points, background points, a box or a previous mask
ml_prompt_sam2ml
Inputs2
Outputs2
Security exposureUnrated
Packageml
Ratings
Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.
No score metadata has been set for this node yet.
Input Pins
2
Input
Execution
exec_in
Run this operation
Configuration
Struct
request
Inputs and configuration
PromptSam2RequestPromptSam2Request4 fields
source_idstringrequired
imagesTensorDatarequired
A CHW image or NCHW batch resized to 1024 and normalized with ImageNet mean and standard deviation.
shapeArray<integer:uint>required
itemsinteger:uintarray item
format uintmin 0
valuesArray<number:float>required
itemsnumber:floatarray item
format float
promptsArray<Sam2Prompt>required
itemsSam2Promptarray item
pointsArray<Sam2Point>
default []
itemsSam2Pointarray item
bboxarray | null
Pixel coordinates [left, top, right, bottom] in the resized image.
default null
itemsnumber:floatarray item
format float
maskanyOf (2)
Previous low-resolution mask logits with shape [1, 256, 256].
default null
variant 1TensorData2variant
Temporal inputs use [batch, time, channels]; images use [batch, channels, height, width].
Video adds time before channels: [batch, time, channels, height, width].
Temporal inputs use [batch, time, channels]; images use [batch, channels, height, width].
Video adds time before channels: [batch, time, channels, height, width].
shapeArray<integer:uint>required
itemsinteger:uintarray item
format uintmin 0
valuesArray<number:float>required
itemsnumber:floatarray item
format float
iouTensorDatarequired
Temporal inputs use [batch, time, channels]; images use [batch, channels, height, width].
Video adds time before channels: [batch, time, channels, height, width].
shapeArray<integer:uint>required
itemsinteger:uintarray item
format uintmin 0
valuesArray<number:float>required
itemsnumber:floatarray item
format float
object_score_logitsTensorDatarequired
Temporal inputs use [batch, time, channels]; images use [batch, channels, height, width].
Video adds time before channels: [batch, time, channels, height, width].