Image editing

SAM 3: Remove Background

Select a subject using a text prompt and remove the background.

Preview mode
A bronze diving helmet isolated from its background
Example preview · A bronze diving helmet isolated from its background Example from Comfy Org · Template license

How to start

  1. Download the free workflow JSON and drag it onto the ComfyUI canvas.
  2. Download the weights and put them in the listed folders. Install any missing nodes in ComfyUI.
  3. Load an image and enter a short text label for the subject to isolate. Check MaskPreview to see which parts of the image were selected.

Example input files

These are the filenames loaded by the template. Use the linked files where available, or replace them with your own media.

How to update ComfyUI · Template license

Model downloads