Home Creators Posts Import Register Favorites Logout

Content

Video: https://youtu.be/jR-fMaPMYfE

In this video, we dive deep into Meta AI’s newly released Segment Anything Model 3 (SAM3) and show you exactly how to use it for high-precision image and video segmentation—right inside ComfyUI. You’ll learn how to set up SAM3 using custom nodes, extract accurate object masks with automatic or manual ID selection, and integrate those masks into advanced workflows like virtual try-ons and animated character editing using models like WAN 2.2 Animate and Quan Image Edit. We also demonstrate SAM3’s new 3D capabilities and walk through real-world examples, from single-person TikTok videos to multi-character party scenes, showing how SAM3 makes complex masking tasks dramatically easier and more reliable than ever before.

This tutorial is perfect for AI content creators, fashion tech experimenters, and ComfyUI workflow builders who work with image-to-video generation, virtual try-on systems, or character-based editing. If you’ve struggled with inaccurate masks in previous AI models—especially when dealing with complex clothing shapes, overlapping people, or dynamic poses—this video gives you the tools to finally achieve clean, object-specific segmentation. Whether you're editing fashion visuals, creating personalized avatars, or building AI-driven video effects, SAM3 combined with modern upscaling and animation pipelines (like Z-Image Turbo and WAN 2.2) opens up a new level of creative control.

Why does this matter? Because precise masking is the hidden bottleneck in almost every advanced generative AI workflow—from virtual styling to video relighting and character animation. SAM3 solves this by giving you per-object IDs, smart prompt-based segmentation, and seamless video frame handling, all while working smoothly with your existing ComfyUI setup. By mastering SAM3 now, you’re not just upgrading your masking—you’re unlocking the next generation of consistent, controllable, and commercial-ready AI-generated content.

Sam3 - MetaAI

https://ai.meta.com/sam3/

https://github.com/facebookresearch/sam3

Custom node

comfyui_sam3

https://github.com/wouterverweirder/comfyui_sam3/

or

https://github.com/PozzettiAndrea/ComfyUI-SAM3

Hugging Face:

https://huggingface.co/facebook/sam3

https://huggingface.co/facebook/sam-3d-objects

https://huggingface.co/facebook/sam-3d-body-vith

Modelscope:

https://modelscope.cn/models/facebook/sam3

https://modelscope.cn/models/facebook/sam-3d-objects

https://modelscope.cn/models/facebook/sam-3d-body-vith/

Attached 2 tutorial workflow for image and video example.

This is the screenshot of Qwen Image Edit workflow, you can set for other purposes, not only for Try-On.

Files

Comments

Derrick Pang

Benj, thanks for the Sam3 tutorial. I was trying to use "subject id" to select what to mask in image. But I don't see the id for image masking. For example, i prompted "clothing" but it also selects pants, and I only want to mask the shirt. Is there a way to just subject Id the shirt and leave out the pants or do I just have to use one of the masks output.

Mateusz Bardeli

Could you update the workflow for "Wan Vace With Lynx And Infinite Talk - Create the Most Realistic Talking Avatar" with the SAM3 model? I see you're very comfortable working with nodes, I'm barely getting the hang of it.