Nodes/CRT-Nodes/Isolate Input SAM3.1 (CRT)
ComfyUI Node

Isolate Input SAM3.1 (CRT)

A ComfyUI node in CRT/Utils/Isolate with 10 inputs and 2 outputs.

By PGCRT·Created 2 years ago·Updated 7 days ago· 129
Isolate Input SAM3.1 (CRT)
  • images
  • cropped_images
  • pipe
what_to_detectface
performance_presetQuality
single_itemfalse
detect_chunk_size0
padding512
threshold0.30
bbox_expansion0.75
crop_smooth_alpha1.00
crop_megapixels1.00
CategoryCRT/Utils/Isolate

Inputs (10)

NameTypeDefaultDescription
imagesIMAGE
what_to_detectSTRINGfaceText prompt used for subject detection, for example 'face' or 'person'.
performance_presetCOMBOQualityFast = quickest detection, Balanced = default tradeoff, Quality = highest available quality in the current custom-node path and slower processing. The SAM path still uses a model-safe square working resolution.
single_itemBOOLEANfalseLimit detection to one item per frame. Enable this when you only want the main face/subject.
detect_chunk_sizeINT00–4096Detection batch size. 0 = process the whole batch at once, 1 = per-image processing, 2+ = fixed chunk size.
paddingINT5120–2048Extra border added around the input batch before detection so subjects near the edges are not cropped too tightly.
thresholdFLOAT0.300–1Detection confidence threshold. Lower values find more masks, higher values are stricter.
bbox_expansionFLOAT0.750.5–4Expands the detected crop box around the subject. Higher values give a looser crop.
crop_smooth_alphaFLOAT1.000–1Temporal smoothing for crop position. Lower = steadier crop, higher = follows motion more closely.
crop_megapixelsFLOAT1.000–8Target resolution for the cropped output images. 0 disables crop rescaling.

Outputs (2)

NameTypeDescription
cropped_imagesIMAGE
pipeCRT_ISOLATE_PIPE