← Open Source
PozzettiAndrea

ComfyUI-SAM3

ComfyUI wrapper for segment anything 3

AI EngineeringMake agent see hear talkPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
577
Stars
84
Forks
+1
This week
9
Contributors
Created 2025-11-19 · Updated 2026-10-11 · #16549 today
Top developers
README

[!WARNING] Warning, uses experimental package comfy-env to attempt a one click isolated install. Will download and use pixi package manager.

ComfyUI-SAM3

Installation

Three options, in order of speed → reliability:

  1. ComfyUI Manager (recommended) — search for SAM3 in the Manager and click Install from the highest version displayed. If that doesn't work, try nightly.
  2. Manager via Git URL — in ComfyUI Manager: "Install via Git URL" with https://github.com/PozzettiAndrea/ComfyUI-SAM3.git.
  3. Manual (most reliable):
    cd ComfyUI/custom_nodes
    git clone https://github.com/PozzettiAndrea/ComfyUI-SAM3.git
    cd ComfyUI-SAM3
    pip install -r requirements.txt --upgrade
    python install.py
    

Please report any problems you hit during installation or use of my nodes — open a Discussion or Issue. Very grateful for your help! 🙏


Workflow Test Gallery

View Live Test Gallery →

ComfyUI integration for Meta's SAM3 (Segment Anything Model 3). Open-vocabulary image and video segmentation using natural language text prompts.

https://github.com/user-attachments/assets/323df482-1f05-4c69-8681-9bfb4073f766

Credits

  • SAM3: Meta AI Research (https://github.com/facebookresearch/sam3)
  • ComfyUI Integration: ComfyUI-SAM3
  • Interactive Points Editor: Adapted from ComfyUI-KJNodes by kijai (Apache 2.0 License). The SAM3PointsEditor node is based on the PointsEditor implementation from KJNodes, simplified for SAM3-specific point-based segmentation.