{"id":37200,"date":"2025-06-15T09:13:05","date_gmt":"2025-06-15T01:13:05","guid":{"rendered":"https:\/\/www.1ai.net\/?p=37200"},"modified":"2025-06-17T12:14:16","modified_gmt":"2025-06-17T04:14:16","slug":"ai%e6%8a%a0%e5%9b%be%e5%b7%a5%e4%bd%9c%e6%b5%81%ef%bc%8ccomfyui%e5%8e%bb%e8%83%8c%e6%99%af%e6%8f%92%e4%bb%b6%e5%ae%8c%e7%be%8e%e5%ae%9e%e7%8e%b0%e4%b8%80%e9%94%ae%e6%8a%a0%e5%9b%be","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/37200.html","title":{"rendered":"AI Keying Workflow, ComfyUi De-Background Plugin Perfect for One-Click Keying"},"content":{"rendered":"<p>RMBG can be said to be<a href=\"https:\/\/www.1ai.net\/en\/tag\/comfyui\" title=\"_Other Organiser\" target=\"_blank\" >ComfyUI<\/a>The 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).<\/p>\n<p>Here's an official example image of it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37202\" title=\"a587d8ffj00sxobr0009zd000u000e8m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/06\/a587d8ffj00sxobr0009zd000u000e8m.jpg\" alt=\"a587d8ffj00sxobr0009zd000u000e8m\" width=\"1080\" height=\"512\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37201\" title=\"1a2194cej00sxobqz002nd000u000h6m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/06\/1a2194cej00sxobqz002nd000u000h6m.jpg\" alt=\"1a2194cej00sxobqz002nd000u000h6m\" width=\"1080\" height=\"618\" \/><\/p>\n<p><strong>I. Installation method<\/strong><\/p>\n<p>There are various ways to install the plugin, the easiest way is to search for the RMBG plugin through the manager and download it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37205\" title=\"3607fce0j00sxobr00044d000u000fgm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/06\/3607fce0j00sxobr00044d000u000fgm.jpg\" alt=\"3607fce0j00sxobr00044d000u000fgm\" width=\"1080\" height=\"556\" \/><\/p>\n<p data-pm-slice=\"2 2 []\">If you still want to know how to install other nodes, you can read this article specifically:<\/p>\n<p data-pm-slice=\"2 2 []\"><a class=\"normal_text_link\" href=\"https:\/\/www.1ai.net\/en\/37613.html\/\" target=\"_blank\" rel=\"noopener\" data-itemshowtype=\"0\" data-linktype=\"2\">The secret to making ComfyUI do everything: how to customize nodes! AI Painting, ComfyUI Tutorials, Installing Custom Nodes<\/a><\/p>\n<p>RMBG plugin node address:<\/p>\n<p>https:\/\/github.com\/1038lab\/ComfyUI-RMBG<\/p>\n<p><strong>II. Model Download<\/strong><\/p>\n<p>Once the plugin is installed, the system will automatically download the model when the RMBG plugin is run for the first time.<\/p>\n<p>You can also go to the RMBG github page and download the model from the link provided in the page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37204\" title=\"b26a3eb3j00sxobr0005fd000on00dgm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/06\/b26a3eb3j00sxobr0005fd000on00dgm.jpg\" alt=\"b26a3eb3j00sxobr0005fd000on00dgm\" width=\"887\" height=\"484\" \/><\/p>\n<p>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.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37203\" title=\"86ebc2a4j00sxobqz0018d000g300bpm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/06\/86ebc2a4j00sxobqz0018d000g300bpm.jpg\" alt=\"86ebc2a4j00sxobqz0018d000g300bpm\" width=\"579\" height=\"421\" \/><\/p>\n<p><strong>Third, the picture keying<\/strong><\/p>\n<p>first build<a href=\"https:\/\/www.1ai.net\/en\/tag\/%e5%b7%a5%e4%bd%9c%e6%b5%81\" title=\"_Other Organiser\" target=\"_blank\" >Workflow<\/a>.<\/p>\n<p>Double click on the blank space in the working interface, search for \"RMBG\" and select the first node.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37206\" title=\"556b9f9bj00sxobr0002cd000ra00e1m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/06\/556b9f9bj00sxobr0002cd000ra00e1m.jpg\" alt=\"556b9f9bj00sxobr0002cd000ra00e1m\" width=\"982\" height=\"505\" \/><\/p>\n<p>Then search for the Image Comparer node (Image Comparer )<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37207\" title=\"4de719f1j00sxobr0003wd000sh00hrm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/06\/4de719f1j00sxobr0003wd000sh00hrm.jpg\" alt=\"4de719f1j00sxobr0003wd000sh00hrm\" width=\"1025\" height=\"639\" \/><\/p>\n<p>The workflow is as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37208\" title=\"b7d0de4cj00sxobr0008ad000u000e2m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/06\/b7d0de4cj00sxobr0008ad000u000e2m.jpg\" alt=\"b7d0de4cj00sxobr0008ad000u000e2m\" width=\"1080\" height=\"506\" \/><\/p>\n<p>After clicking run, its supposed to take 1 second for the character to complete the snap image operation.<\/p>\n<p>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.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37209\" title=\"e75e99edj00sxobr100j3d000u000qzm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/06\/e75e99edj00sxobr100j3d000u000qzm.jpg\" alt=\"e75e99edj00sxobr100j3d000u000qzm\" width=\"1080\" height=\"971\" \/><\/p>\n<p>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.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37210\" title=\"160ab142j00sxobr100pkd000u000onm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/06\/160ab142j00sxobr100pkd000u000onm.jpg\" alt=\"160ab142j00sxobr100pkd000u000onm\" width=\"1080\" height=\"887\" \/><\/p>\n<p>RMBG can key not only images, but also motion pictures, but the keyed image is frame by frame.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37211\" title=\"0229bcd9j00sxobr000aad000u000d4m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/06\/0229bcd9j00sxobr000aad000u000d4m.jpg\" alt=\"0229bcd9j00sxobr000aad000u000d4m\" width=\"1080\" height=\"472\" \/><\/p>\n<p>If you want to get better<a href=\"https:\/\/www.1ai.net\/en\/tag\/%e6%8a%a0%e5%9b%be\" title=\"_Other Organiser\" target=\"_blank\" >keying<\/a>Effectively, 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 .<\/p>\n<p>There are many ways to zoom in on an image in HD, see the article:<\/p>\n<p><a href=\"https:\/\/www.1ai.net\/en\/35030.html\/\">4 methods, ComfyUI's strongest picture HD enlargement workflow, non-destructive enlargement, detail complementary , easy to perfectly repair the picture to 4K8K wallpaper level!<\/a><\/p>\n<p><strong>Fourth, the picture high-definition keying<\/strong><\/p>\n<p>1, first build a simple picture HD zoom workflow<\/p>\n<p>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.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37212\" title=\"0f73ccaaj00sxobr000ccd000u000fym\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/06\/0f73ccaaj00sxobr000ccd000u000fym.jpg\" alt=\"0f73ccaaj00sxobr000ccd000u000fym\" width=\"1080\" height=\"574\" \/><\/p>\n<p>2, increase image chunking and inverse chunking node<\/p>\n<p>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.<\/p>\n<p>Note: The row and column values of the chunk node and the inverse chunk node should be consistent.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37213\" title=\"04ee0f4aj00sxobr0009vd000u000fcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/06\/04ee0f4aj00sxobr0009vd000u000fcm.jpg\" alt=\"04ee0f4aj00sxobr0009vd000u000fcm\" width=\"1080\" height=\"552\" \/><\/p>\n<p>3. Mount the keying node<\/p>\n<p>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.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37214\" title=\"62e4e2d3j00sxobr00044d000u0009im\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/06\/62e4e2d3j00sxobr00044d000u0009im.jpg\" alt=\"62e4e2d3j00sxobr00044d000u0009im\" width=\"1080\" height=\"342\" \/><\/p>\n<p>Here is the complete workflow with the addition of the image comparison node<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37215\" title=\"ecc8dc09j00sxobr000bgd000u000g0m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/06\/ecc8dc09j00sxobr000bgd000u000g0m.jpg\" alt=\"ecc8dc09j00sxobr000bgd000u000g0m\" width=\"1080\" height=\"576\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>RMBG can be said to be the strongest background (image) plugin in ComfyUI, which is not only powerful, but also very simple to use, and can be said to have achieved a one-click background (image) function. Here is its official illustration. There are many ways to install plugins, the simplest way to search for RMBG plugins through the manager and download them. If you also want to know how other nodes are installed, you can look at this article: \"Cofyui's secret: how to customize nodes!\" AI painting, ComfyUI tutorial, installation of custom node RMBG plugin node address: https:\/\/github.com\/1038lab\/CommyUI-RMBG II, model download<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149,144],"tags":[1989,4401,5145,6892],"collection":[],"class_list":{"0":"post-37200","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-jiaocheng","7":"category-baike","8":"tag-comfyui","10":"tag-5145","11":"tag-6892"},"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/37200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/comments?post=37200"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/37200\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=37200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=37200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=37200"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=37200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}