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.

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

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

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.

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

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.

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

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.

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

Third, the picture keying

first buildWorkflow.

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

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

Then search for the Image Comparer node (Image Comparer )

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

The workflow is as follows:

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

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.

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

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.

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

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

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

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.

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

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.

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

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.

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

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

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

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

Search