Background removal is an essential tool for digital artists and graphic designers. It cuts clutter and enhances focus. You can reuse the image in a different context.
In this tutorial, I will show you how to remove the background of an image in ComfyUI.
Table of Contents
Software
We will use ComfyUI, an alternative to AUTOMATIC1111. You can use it on Windows, Mac, or Google Colab. If you prefer using a ComfyUI service, Think Diffusion offers our readers an extra 20% credit.
Read the ComfyUI beginner’s guide if you are new to ComfyUI. See the Quick Start Guide if you are new to AI images and videos.
Take the ComfyUI course to learn how to use ComfyUI step-by-step.
Alternatives
Many online tools remove background but may require sign up or payment to download the processed image in the original resolution. Also, it may not be a good idea to use them if you have privacy or confidentiality concerns.
Instead of ComfyUI, you can also use AUTOMATIC1111 for background removal.
Step-by-step guide
You will need the ComfyUI manager to follow this tutorial.
Step 1: Load workflow
Download the JSON workflow below and drop it to ComfyUI.
Step 2: Install missing nodes
If you see red nodes, you don’t have the custom node that this workflow uses.
Click Manager > Install missing custom nodes and install the missing nodes.
Restart ComfyUI.
Step 3: Install background removal model
Download the BRIA background removal model. Put it in ComfyUI > custom_nodes > ComfyUI-BRIA_AI-RMBG > RMBG-1.4
Step 4: Run the workflow
Drop an image load image node.
Click Queue to run the workflow.