ComfyUI > Nodes > ComfyUI SAM3

ComfyUI Extension: ComfyUI SAM3

Repo Name

comfyui_sam3

Author
wouterverweirder (Account age: 5185 days)
Nodes
View all nodes(3)
Latest Updated
2025-12-11
Github Stars
0.06K

How to Install ComfyUI SAM3

Install this extension via the ComfyUI Manager by searching for ComfyUI SAM3
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI SAM3 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

ComfyUI SAM3 Description

ComfyUI SAM3 enhances ComfyUI with custom nodes designed to integrate seamlessly with SAM3, enabling advanced functionality and improved workflow efficiency within the user interface.

comfyui_sam3 Introduction

Welcome to the world of comfyui_sam3, an innovative extension designed to bring the power of Meta's Segment Anything Model 3 (SAM3) into your creative workflows. This extension is tailored for AI artists who wish to leverage advanced image segmentation capabilities without delving into complex technical setups. With comfyui_sam3, you can effortlessly segment objects in images using simple text prompts, such as "person," "car," or "dog." This tool is perfect for artists looking to isolate elements within their artwork, create masks for inpainting, or even track objects across video frames. By integrating SAM3 into ComfyUI, the author has made it possible for you to enhance your creative projects with precision and ease.

How comfyui_sam3 Works

At its core, comfyui_sam3 utilizes the Segment Anything Model 3 (SAM3), a state-of-the-art zero-shot segmentation model. This means that the model can identify and segment objects in images without needing prior training on specific datasets. Instead, it uses natural language prompts to understand what you want to segment. Imagine telling a friend to find all the "cats" in a photo; SAM3 does just that, but with the precision of a machine learning model. It processes the image, identifies the objects that match your description, and creates masks that you can use in your artistic projects. Whether you're working with single images or video sequences, comfyui_sam3 adapts to your needs, providing consistent and reliable results.

comfyui_sam3 Features

SAM3 Segmentation Node

The SAM3 Segmentation Node is the heart of this extension, offering a range of inputs and outputs to customize your segmentation tasks:

  • Inputs:
  • Image: The image you wish to segment.
  • Prompt: A text description of the objects you want to segment.
  • Threshold: Sets the minimum confidence score for detections, allowing you to filter out less certain results.
  • Min Width/Height Pixels: Define the minimum size for detected objects, ensuring only significant elements are segmented.
  • Use Video Model: Enables tracking across video frames, maintaining object identity over time.
  • Object IDs: Specify which objects to track in video mode.
  • Outputs:
  • Segmented Image: A visualization with colored overlays and bounding boxes.
  • Masks: Individual binary masks for each detected object.
  • Mask Combined: A single mask combining all detected objects.
  • SEGS: Detailed segmentation objects compatible with ComfyUI-Impact-Pack.

Model Modes

Image Model

  • Ideal for single images, processing each frame independently for quick results.

Video Model

  • Perfect for video sequences, offering temporal tracking and consistent object IDs across frames.

Mask Outline Node

This feature allows you to create outlines around segmented objects, adding a creative touch to your masks. You can adjust the width and position of the outline, making it inside, outside, or on both sides of the mask boundary.

SEGS to Rectangle Node

Convert complex polygon masks into simple rectangular ones, preserving all metadata. This is useful for workflows that require rectangular regions, such as inpainting or post-processing.

comfyui_sam3 Models

comfyui_sam3 offers two primary modes: the Image Model and the Video Model. The Image Model is best for static images, providing fast and independent processing of each frame. The Video Model, on the other hand, is designed for dynamic content, maintaining object identities across frames and allowing for selective tracking of specific objects.

What's New with comfyui_sam3

Stay tuned for updates as the author continues to enhance comfyui_sam3 with new features and improvements. Each update aims to refine your experience, offering more control and flexibility in your artistic endeavors.

Troubleshooting comfyui_sam3

If you encounter any issues while using comfyui_sam3, here are some common solutions:

  • Model Not Downloading: Ensure you have requested access to the model on HuggingFace and are logged in using hf auth login.
  • Segmentation Not Accurate: Adjust the confidence threshold or refine your text prompts for better results.
  • Video Model Not Tracking: Verify that the use_video_model option is enabled and that you have specified the correct object_ids if needed.

Learn More about comfyui_sam3

To further explore the capabilities of comfyui_sam3, consider visiting community forums and tutorials where fellow AI artists share their experiences and tips. Engaging with the community can provide valuable insights and inspiration for your projects.

ComfyUI SAM3 Related Nodes

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.