Welcome, my friends! Today, I want to show you how to remove backgrounds using the Automatic 1111 and how to leverage it inside ComfyUI, where it's a lot more powerful. My Patreon supporters get this workflow and many other workflows and videos as rewards. Thanks for your support!
The process of removing backgrounds in Automatic 1111 is straightforward. There is an extension called stable-diffusion-webui-RMG
which you need to install. Here’s how to set it up:
Navigate to Extensions:
Install the Extension:
stable-diffusion-webui-RMG
or browse the list to find it.Apply and Restart:
Unfortunately, this extension does not work directly in the Text to Image tab. You need to create the image first and then send it to the 'Extras' tab.
Here, you have multiple methods for background removal such as U-2-Net
, U-2-NetP
, U-2-Net Clothes
, etc. Choose the one that fits your need. When ready, click 'Generate'. This will produce a PNG download with a transparent background.
Inspect the Image:
Adjust Settings:
For characters, it's beneficial to use a gray studio background. Gray doesn’t interfere with most colors and doesn’t leave unwanted color spills around the edges.
ComfyUI offers more powerful and flexible options for background removal. Here’s how to set it up:
Render Your Character:
Render the Background:
Combine Foreground and Background:
ComfyUI is versatile because it allows a range of options for editing the images, be it using masks or direct combination methods.
Layer Style Pack:
VAS Pack:
MixLab Pack:
Finally, a denoise filter with a slight setting (e.g., 0.37) can help blend the character and background better.
ComfyUI is a powerful tool compared to Automatic 1111, offering more flexibility and advanced options for image processing. Let me know your thoughts in the comments. Thanks for watching and see you soon!
Q: What is the benefit of using a gray studio background?
A: Gray doesn’t interfere with most colors, doesn’t remove the colors out of the image, and doesn’t leave unwanted color spills.
Q: Which extension do I need for background removal in Automatic 1111?
A: You need the stable-diffusion-webui-RMG
extension.
Q: Can I use the background removal extension directly in the Text to Image tab of Automatic 1111?
A: No, you must first create the image and then use the background removal feature in the 'Extras' tab.
Q: What should I check after removing the background?
A: Inspect the edges and small gaps, such as between arms and torso, or fingers and background.
Q: What makes ComfyUI more powerful than Automatic 1111 for background removal?
A: ComfyUI offers more options for editing and combining images, and more settings for fine-tuning background removal.
Q: How do I combine foreground and background images in ComfyUI?
A: Use various nodes and packs such as Layer Style, VAS, and MixLab to combine images seamlessly.
In addition to the incredible tools mentioned above, for those looking to elevate their video creation process even further, Topview.ai stands out as a revolutionary online AI video editor.
TopView.ai provides two powerful tools to help you make ads video in one click.
Materials to Video: you can upload your raw footage or pictures, TopView.ai will edit video based on media you uploaded for you.
Link to Video: you can paste an E-Commerce product link, TopView.ai will generate a video for you.