AI Keying Workflow, ComfyUi De-Background Plugin Perfect for One-Click Keying

RMBG can be said to beComfyUIThe strongest go background (keying) plugin, it is not only powerful, and use in very simple, can be said to realize the function of a key to go background (keying).

Here's an official example image of it.

a587d8ffj00sxobr0009zd000u000e8m

1a2194cej00sxobqz002nd000u000h6m

I. Installation method

There are various ways to install the plugin, the easiest way is to search for the RMBG plugin through the manager and download it.

3607fce0j00sxobr00044d000u000fgm

If you still want to know how to install other nodes, you can read this article specifically:

The secret to making ComfyUI do everything: how to customize nodes! AI Painting, ComfyUI Tutorials, Installing Custom Nodes

RMBG plugin node address:

https://github.com/1038lab/ComfyUI-RMBG

II. Model Download

Once the plugin is installed, the system will automatically download the model when the RMBG plugin is run for the first time.

You can also go to the RMBG github page and download the model from the link provided in the page.

b26a3eb3j00sxobr0005fd000on00dgm

Once the models are downloaded, put them into the RMBG, SAM, and grouding-dino folders, and then put these three folders into the comfyUI/models path.

86ebc2a4j00sxobqz0018d000g300bpm

Third, the picture keying

first buildWorkflow.

Double click on the blank space in the working interface, search for "RMBG" and select the first node.

556b9f9bj00sxobr0002cd000ra00e1m

Then search for the Image Comparer node (Image Comparer )

4de719f1j00sxobr0003wd000sh00hrm

The workflow is as follows:

b7d0de4cj00sxobr0008ad000u000e2m

After clicking run, its supposed to take 1 second for the character to complete the snap image operation.

Since I'm adding an Image Comparator node, we can manually drag the vertical lines in the image to see the difference between the original image and the keyed image.

e75e99edj00sxobr100j3d000u000qzm

After zooming in and observing, the keying effect of the characters is still very good, and even the keying of the hair part is also done very well.

160ab142j00sxobr100pkd000u000onm

RMBG can key not only images, but also motion pictures, but the keyed image is frame by frame.

0229bcd9j00sxobr000aad000u000d4m

If you want to get betterkeyingEffectively, the original image is first of all a relatively clear large-sized picture, so we can first enlarge the original image in high definition, and then keying .

There are many ways to zoom in on an image in HD, see the article:

4 methods, ComfyUI's strongest picture HD enlargement workflow, non-destructive enlargement, detail complementary , easy to perfectly repair the picture to 4K8K wallpaper level!

Fourth, the picture high-definition keying

1, first build a simple picture HD zoom workflow

As shown in the figure below, this is the simplest model to zoom the image through the model HD, which consists of three nodes: "Load Zoom Model", "Zoom Image with Model" and "Save Image". nodes.

0f73ccaaj00sxobr000ccd000u000fym

2, increase image chunking and inverse chunking node

If we mount the image zoom node in front of other workflows, it will take up the already small amount of video memory. Increasing the image chunking node and the inverse chunking node allows the graphics card to perform chunking calculations on the image when calculating, which significantly reduces the computational pressure on the graphics card.

Note: The row and column values of the chunk node and the inverse chunk node should be consistent.

04ee0f4aj00sxobr0009vd000u000fcm

3. Mount the keying node

Connect the inverse chunked image output pipeline to the keying node, and then finally connect an image saving node, which accomplishes the purpose of first enlarging the image and then keying it.

62e4e2d3j00sxobr00044d000u0009im

Here is the complete workflow with the addition of the image comparison node

ecc8dc09j00sxobr000bgd000u000g0m

statement:The content of the source of public various media platforms, if the inclusion of the content violates your rights and interests, please contact the mailbox, this site will be the first time to deal with.
TutorialEncyclopedia

Explosive national style video production tutorials, using AI to create the "Lychee in Chang'an" colorful ink wind video

2025-6-14 9:24:15

TutorialEncyclopedia

Using AI to create 3D game card props display, AI card design is so awesome!

2025-6-15 9:59:21

Zenium
Search