Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-SCAIL2-Easy > SCAIL-2 Reference SAM Builder

ComfyUI Node: SCAIL-2 Reference SAM Builder

Class Name

SCAIL2ReferenceSAMBuilder

Category
SCAIL-2/Simple
Author
jieg9341-lab (Account age: 285days)
Extension
ComfyUI-SCAIL2-Easy
Latest Updated
2026-06-15
Github Stars
0.03K

How to Install ComfyUI-SCAIL2-Easy

Install this extension via the ComfyUI Manager by searching for ComfyUI-SCAIL2-Easy
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-SCAIL2-Easy in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

SCAIL-2 Reference SAM Builder Description

Specialized node for integrating reference images and masks into SCAIL-2 model workflow, enhancing identity recognition and tracking in video sequences.

SCAIL-2 Reference SAM Builder:

The SCAIL2ReferenceSAMBuilder is a specialized node designed to facilitate the integration of reference images and masks into the SCAIL-2 model workflow. This node plays a crucial role in preparing and encoding reference data, which is essential for the model to accurately interpret and process video tracks. By converting video frames into a format that the SCAIL-2 model can consume, it ensures that the model can effectively utilize reference images and masks to enhance the quality of identity recognition and tracking across video sequences. The node is particularly beneficial for applications that require precise object detection and tracking, as it supports the use of multiple reference views and masks, thereby improving the model's ability to handle complex scenes with multiple identities.

SCAIL-2 Reference SAM Builder Input Parameters:

reference_pack

The reference_pack parameter is a dictionary that contains the reference images and masks needed for the SCAIL-2 model. It includes information about the subjects, their images, and corresponding masks. This parameter is crucial as it provides the foundational data that the node will process and encode for the model. The quality and completeness of the reference pack directly impact the model's performance in recognizing and tracking identities.

sam_model

The sam_model parameter refers to the SAM3 model used for processing the video tracks. This model is responsible for detecting and tracking objects within the video frames. The choice of model can affect the accuracy and efficiency of the object detection process.

conditioning

The conditioning parameter allows for the inclusion of additional contextual information or constraints that can guide the object detection and tracking process. This can include text prompts or other forms of conditioning that influence how the model interprets the video data.

detection_threshold

The detection_threshold parameter is a float value that sets the score threshold for text-prompted detection. It determines the sensitivity of the model in detecting objects, with a range from 0.0 to 1.0. A lower threshold may result in more detections, including false positives, while a higher threshold may reduce false positives but also miss some objects. The default value is 0.5.

max_objects

The max_objects parameter is an integer that specifies the maximum number of objects that can be tracked simultaneously. This includes objects identified by initial masks. The range is from 0 to 64, with 0 using the internal cap of 64. This parameter helps manage computational resources by limiting the number of objects tracked.

detect_interval

The detect_interval parameter is an integer that defines how frequently detection should be run across frames. A value of 1 means detection occurs every frame, while higher values reduce the frequency, saving computational resources. The minimum value is 1, and the default is 1.

SCAIL-2 Reference SAM Builder Output Parameters:

positive

The positive output parameter contains the processed reference latents and masks that are used to positively condition the SCAIL-2 model. This data helps the model accurately recognize and track the intended objects within the video frames.

negative

The negative output parameter includes reference latents and masks that are used to negatively condition the model. This helps the model differentiate between relevant and irrelevant objects, improving the accuracy of object detection and tracking.

summary

The summary output parameter provides a comprehensive overview of the processed reference data, including details such as the shape of the reference masks. This information is useful for understanding how the reference data has been prepared and encoded for the model.

SCAIL-2 Reference SAM Builder Usage Tips:

  • Ensure that the reference_pack is complete and includes all necessary images and masks to optimize the model's performance in recognizing and tracking identities.
  • Adjust the detection_threshold based on the complexity of the scene and the desired balance between sensitivity and specificity in object detection.
  • Use the max_objects parameter to manage computational resources effectively, especially when dealing with scenes containing multiple objects.

SCAIL-2 Reference SAM Builder Common Errors and Solutions:

"Reference Pack has no reference images to encode."

  • Explanation: This error occurs when the reference_pack does not contain any reference images for encoding.
  • Solution: Ensure that the reference_pack includes at least one reference image before processing.

"This Reference Pack needs subject/reference masks."

  • Explanation: This error indicates that the reference_pack is missing necessary masks for the subjects or reference images.
  • Solution: Verify that all subjects and reference images in the reference_pack have corresponding masks, and connect the Reference Pack through the SCAIL-2 Reference SAM Builder before proceeding with SCAIL-2 Simple Video.

SCAIL-2 Reference SAM Builder Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-SCAIL2-Easy
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

SCAIL-2 Reference SAM Builder