floyo logo
Powered by
ThinkDiffusion
Pricing
Wan 2.7 is now live. Check it out 👉🏼
floyo logo
Powered by
ThinkDiffusion
Pricing
Wan 2.7 is now live. Check it out 👉🏼
Last updated
2026-03-11

ComfyUI SAM3 is a custom node pack designed to integrate Meta's advanced image segmentation model, SAM3 (Segment Anything Model 3), into ComfyUI workflows. This tool allows users to perform object segmentation based on natural language prompts, enhancing the capabilities of image processing within the ComfyUI environment.

  • Enables segmentation of objects in images using descriptive text prompts.
  • Offers control over detection parameters, including confidence thresholds and object dimensions.
  • Supports both individual and combined mask outputs, along with visualization features like overlays and bounding boxes.

Context

This tool is an extension for ComfyUI that incorporates SAM3, a cutting-edge zero-shot segmentation model capable of identifying and delineating objects in images based on user-defined text prompts. Its primary purpose is to enhance image editing and processing workflows by allowing users to segment various elements in images easily.

Key Features & Benefits

The SAM3 segmentation node provides a range of practical features, including the ability to specify a confidence threshold for detections, which helps filter out less reliable results. Users can also set minimum dimensions for detected objects to focus on relevant segments, and the tool can produce both individual binary masks for each detected object and a combined mask for all detections, facilitating various image processing tasks.

Advanced Functionalities

The tool includes both image and video model modes. The image model processes frames independently, making it ideal for single images, while the video model allows for temporal tracking across frames, maintaining consistent object IDs and enabling users to follow specific objects throughout video sequences. This dual functionality is particularly valuable for applications requiring continuity in object tracking across multiple frames.

Practical Benefits

By integrating SAM3 into ComfyUI, users gain enhanced control over object segmentation, which significantly improves the quality and efficiency of their workflows. The ability to generate masks for specific objects, filter results by size, and visualize outputs with overlays and bounding boxes streamlines the image editing process, making it easier to isolate elements for further manipulation or analysis.

Credits/Acknowledgments

This tool is developed as part of the ComfyUI ecosystem, utilizing the SAM3 model from Meta. The repository is open-source, allowing contributions and enhancements from the community, and adheres to relevant licensing agreements for both ComfyUI and the SAM3 model.

Inner Nodes

SAM3Segmentation