{"id":29304,"date":"2025-02-24T09:14:43","date_gmt":"2025-02-24T01:14:43","guid":{"rendered":"https:\/\/www.1ai.net\/?p=29304"},"modified":"2025-02-21T21:16:17","modified_gmt":"2025-02-21T13:16:17","slug":"stable-diffusion%e6%80%8e%e4%b9%88%e7%94%a8%ef%bc%9fstable-diffusion%e6%b6%82%e9%b8%a6%e9%87%8d%e7%bb%98%e4%b8%8e%e4%b8%8a%e4%bc%a0%e9%87%8d%e7%bb%98%e8%92%99%e7%89%88","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/29304.html","title":{"rendered":"How to use Stable Diffusion Stable Diffusion Graffiti Repainting &amp; Uploading Repaint Masks"},"content":{"rendered":"<p>In this section, we will delve into the knowledge related to Graffiti Repaint and Upload Repaint Mask, and use AI Model Dressup as a case study to help you learn these points in a comprehensive way.<\/p>\n<p>I. Graffiti repainting: functions and reasons for elimination<\/p>\n<p>First, let's explore Graffiti Redraw. Graffiti Redraw is similar in parameters to Local Redraw, but with an additional setting for mask transparency.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29305\" title=\"562b27acj00ss1avz0016d000pu005wm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/562b27acj00ss1avz0016d000pu005wm.jpg\" alt=\"562b27acj00ss1avz0016d000pu005wm\" width=\"930\" height=\"212\" \/><\/p>\n<p>However, this feature has been eliminated in practice due to its inconvenient operation and functional ambivalence.<\/p>\n<p>Graffiti Redraw is intended to combine the functionality of partial redraw and color change, but this combination leads to the problem of having to modify the color whenever a redraw is performed, making the functionality impractical. As a result, we usually perform color changes in PS or other plugins.<\/p>\n<p><strong>Case in point:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29306\" title=\"050eb148j00ss1aw601gsd000u00140m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/050eb148j00ss1aw601gsd000u00140m.jpg\" alt=\"050eb148j00ss1aw601gsd000u00140m\" width=\"1080\" height=\"1440\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29307\" title=\"6ee203baj00ss1aw501hnd000u00140m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/6ee203baj00ss1aw501hnd000u00140m.jpg\" alt=\"6ee203baj00ss1aw501hnd000u00140m\" width=\"1080\" height=\"1440\" \/><\/p>\n<p>Second, upload the repaint mask: to solve the accuracy problem of local repainting<\/p>\n<p>Next, we focus on uploading a repaint mask.<\/p>\n<p>This feature is widely used in commercial orders, mainly to solve the problem of low accuracy and difficulty in drawing local redraw masks.<\/p>\n<p>Traditional localized repainting requires manually applying a mask, which is not only laborious but also difficult to be precise.<\/p>\n<p>Uploading a repaint mask allows us to specify the area of modification by uploading a black and white mask, greatly simplifying the operation.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29308\" title=\"8096e103j00ss1aw0003qd000u000gwm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/8096e103j00ss1aw0003qd000u000gwm.jpg\" alt=\"8096e103j00ss1aw0003qd000u000gwm\" width=\"1080\" height=\"608\" \/><\/p>\n<p>Third, the actual case: AI model dress up<\/p>\n<p>We will demonstrate how to apply an upload repaint mask with an example of an AI model dress up.<\/p>\n<p>First, we need to create a black and white mask that will cover the part of the dress that needs to be replaced with white and the black part will be the non-modified area.<\/p>\n<p>We then uploaded the original image and mask, adjusted the parameters, entered the cue words (long dress, sleeveless, off-shoulder) and generated a new image.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29306\" title=\"050eb148j00ss1aw601gsd000u00140m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/050eb148j00ss1aw601gsd000u00140m.jpg\" alt=\"050eb148j00ss1aw601gsd000u00140m\" width=\"1080\" height=\"1440\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29309\" title=\"e1be4d36j00ss1aw1000ld000u00140m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/e1be4d36j00ss1aw1000ld000u00140m.jpg\" alt=\"e1be4d36j00ss1aw1000ld000u00140m\" width=\"1080\" height=\"1440\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29310\" title=\"e845badej00ss1aw501rkd000u00140m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/e845badej00ss1aw501rkd000u00140m.jpg\" alt=\"e845badej00ss1aw501rkd000u00140m\" width=\"1080\" height=\"1440\" \/><\/p>\n<p>Fourth, the mask production method<\/p>\n<p>Masking can be done in PS or Photopea (a built-in PS plug-in for SD).<\/p>\n<p>Learn how to use the Quick Selection Tool (or Magnetic Lasso Tool) to key a selection, white out the selection and duplicate the new layer, create a new blacked out layer, and finally export the mask.<\/p>\n<p>V. Notes and Restoration Process<\/p>\n<p>During the AI model dressing process, we may encounter the problem that the edge pixels don't line up with the original image, resulting in small imperfections on the edges.<\/p>\n<p>In order to solve this problem, we can put the generated image into the local repainting again to repair, adjust the mask mode to the original image, and control the repainting amplitude of about 0.5, in order to achieve a natural transition of the edge.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29311\" title=\"37f117c9j00ss1aw601rnd000u00140m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/37f117c9j00ss1aw601rnd000u00140m.jpg\" alt=\"37f117c9j00ss1aw601rnd000u00140m\" width=\"1080\" height=\"1440\" \/><\/p>\n<p>VI. Summary<\/p>\n<p>In this section we have learned the reasons for the elimination of graffiti repainting and the detailed process of uploading a repainting mask, including the production method of the mask and the actual case of AI model dressing. These knowledge points are difficult, but through practice and repeated learning, I believe we can master and apply to the actual project.<\/p>\n<p>Hopefully this article will help you better understand the<a href=\"https:\/\/www.1ai.net\/en\/tag\/stable-diffusion\" title=\"_Other Organiser\" target=\"_blank\" >Stable Diffusion<\/a>The Doodle Redraw and Upload Redraw Mask functions and the flexibility to use them in real projects.<\/p>","protected":false},"excerpt":{"rendered":"<p>In this section, we will delve into the knowledge related to graffiti repainting and uploading repainting masks, and use AI model dressing as a case study to help you learn these points comprehensively. First, graffiti repainting: functions and reasons for elimination First, let's explore graffiti repainting. Graffiti repainting is similar to local repainting in terms of parameters, but there is more than one mask transparency settings. However, this feature has been phased out in practice due to its inconvenience and contradictory functionality. Graffiti Repaint aims to combine the functions of partial redraw and color change, but this combination leads to the problem that the color must be modified whenever a redraw is performed, making the function impractical. Therefore, we usually perform color changes in PS or other plugins. Case: Second, upload the repaint mask: to solve the local repainting of the fine<\/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":[2328,197,198],"collection":[262],"class_list":{"0":"post-29304","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-jiaocheng","7":"category-baike","8":"tag-ai","9":"tag-stable-diffusion","11":"collection-stablediffusion"},"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/29304","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=29304"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/29304\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=29304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=29304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=29304"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=29304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}