ComfyUI Node

SAMURAI Refine

# SAMURAI Refine Node This node performs video object segmentation using the SAMURAI model. ## Inputs: - **image**: Input video frames sequence (required) - **model_name**: SAMURAI model to use (required) - **resolution**: Maximum resolution for processing (default: 1024) - **iou_threshold**: Intersection over Union threshold (default: 0.1) - **box**: Bounding box from SAMURAI Box Input (optional) - **points**: Point prompts for segmentation (optional) - **labels**: Labels for point prompts (optional) - **start_frame**: Starting frame number (optional) ## Outputs: - **MASK**: Generated segmentation masks - **frame_number**: Current frame number for sequence ## Models Available: - sam2.1_hiera_base.pt - sam2.1_hiera_base_plus.pt - sam2.1_hiera_large.pt - sam2.1_hiera_small.pt ## Usage: 1. Connect video and box/points inputs 2. Select desired model and parameters 3. Node will generate masks for the selected object through the video sequence

By takemetosiberia·Created 2 years ago·Updated 2 years ago· 43
SAMURAI Refine
  • image
  • box
  • points
  • labels
  • start_frame
  • MASK
model_namesam2.1_hiera_base_plus.pt
resolution1024
iou_threshold0.10
CategorySAMURAI

Inputs (8)

NameTypeDefaultDescription
imageIMAGE
model_nameCOMBOsam2.1_hiera_base_plus.pt4 options: sam2.1_hiera_base.pt, sam2.1_hiera_base_plus.pt, sam2.1_hiera_large.pt, sam2.1_hiera_small.pt
resolutionINT102464–2048
iou_thresholdFLOAT0.100–1
boxoptBOX
pointsoptPOINTS
labelsoptLABELS
start_frameoptSTART_FRAME

Outputs (1)

NameTypeDescription
MASKMASK