{"id":29271,"date":"2025-02-22T09:53:47","date_gmt":"2025-02-22T01:53:47","guid":{"rendered":"https:\/\/www.1ai.net\/?p=29271"},"modified":"2025-02-21T21:00:29","modified_gmt":"2025-02-21T13:00:29","slug":"stable-diffusion%e6%80%8e%e4%b9%88%e7%94%a8%ef%bc%9fstable-diffusion%e6%b6%82%e9%b8%a6%e5%8a%9f%e8%83%bd%e4%b8%8e%e5%b1%80%e9%83%a8%e9%87%8d%e7%bb%98","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/29271.html","title":{"rendered":"How to use Stable Diffusion, Stable Diffusion doodle feature with partial repainting"},"content":{"rendered":"<p>In this section, we'll delve into the magical world of doodling and partial redrawing, learning how to change the color of an image, add a logo, and even fix blemishes on a picture through these techniques.<\/p>\n<p>I. Graffiti: a new dimension in image editing<\/p>\n<p>In graph-generated learning, we often encounter the need to precisely change the color or details of a certain part of an image. The Doodle function was created to allow us to make changes directly on the reference image, and then perform the graph-generated drawing function to achieve a regional change in color.<\/p>\n<p>1. Role and parameters of graffiti<\/p>\n<p>The Graffiti interface is similar to Tupelo, but it enables precise color replacement by directly modifying the pixels of the reference image. We can use the palette and brush tools to change the color of the image. Here are two important parameters in Graffiti:<\/p>\n<ol>\n<li><strong>Brush size<\/strong>: Adjust the size of the brush for fine or large areas.<\/li>\n<li><strong>palette<\/strong>: Selects the color of the brush, which can be specified precisely using RGB, HSL, or 16-bit HEX codes.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29272\" title=\"53718bfbj00ss1ail00fhd000u000esm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/53718bfbj00ss1ail00fhd000u000esm.jpg\" alt=\"53718bfbj00ss1ail00fhd000u000esm\" width=\"1080\" height=\"532\" \/><\/p>\n<p>2, hands-on case: change the color of clothes and add Logo<\/p>\n<p>We will demonstrate how to use the graffiti feature with a case study. Let's say we need to change a beautiful woman's white dress to yellow, add the two letters SK logo to the dress, and change the color of the eaves. We can easily achieve this effect by painting the yellow color directly on the image and adding the SK letters in black (slightly gray), as well as painting the eaves.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29273\" title=\"c31757a1j00ss1air01bdd000u000u0m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/c31757a1j00ss1air01bdd000u000u0m.jpg\" alt=\"c31757a1j00ss1air01bdd000u000u0m\" width=\"1080\" height=\"1080\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29274\" title=\"63a12483j00ss1aip017vd000qo00qom\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/63a12483j00ss1aip017vd000qo00qom.jpg\" alt=\"63a12483j00ss1aip017vd000qo00qom\" width=\"960\" height=\"960\" \/><\/p>\n<p>II. Local redrawing: precise control of image generation<\/p>\n<p>Local repainting is<a href=\"https:\/\/www.1ai.net\/en\/tag\/stable-diffusion\" title=\"_Other Organiser\" target=\"_blank\" >Stable Diffusion<\/a>It allows us to redraw only a specified range of the image. This means that we can change one part of the image without affecting other areas.<\/p>\n<p>1, the role and principle of local repainting<\/p>\n<p>Local redrawing is similar in principle to Tupelo, but it lays down the noise only locally and denoises only locally, so it is possible to achieve other areas that are completely unchanged. By using a mask to cover the parts that need to be changed, we can tell Stable Diffusion to change only those areas.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29275\" title=\"6b1de00cp00ss1aik0013d000u0003hm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/6b1de00cp00ss1aik0013d000u0003hm.png\" alt=\"6b1de00cp00ss1aik0013d000u0003hm\" width=\"1080\" height=\"125\" \/><\/p>\n<p>2, hands-on case: local color replacement<\/p>\n<p>We will go through a case study to demonstrate how to use the local repaint feature. Suppose we need to change the white shirt of a beautiful woman to yellow without changing the background. We can easily achieve this effect by overlaying a mask on the shirt and specifying the color change in the front cue word.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29273\" title=\"c31757a1j00ss1air01bdd000u000u0m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/c31757a1j00ss1air01bdd000u000u0m.jpg\" alt=\"c31757a1j00ss1air01bdd000u000u0m\" width=\"1080\" height=\"1080\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29276\" title=\"b38e897aj00ss1aiq016zd000qo00qom\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/b38e897aj00ss1aiq016zd000qo00qom.jpg\" alt=\"b38e897aj00ss1aiq016zd000qo00qom\" width=\"960\" height=\"960\" \/><\/p>\n<p>3\u3001Parameters of local redrawing<\/p>\n<p>There are two particular parameters to be aware of in local redraw:<\/p>\n<p><strong>Prompt word<\/strong>: Only what is covered by the mask can be described, as only these parts generate changes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29277\" title=\"cc315601j00ss1ail009od000u000esm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/cc315601j00ss1ail009od000u000esm.jpg\" alt=\"cc315601j00ss1ail009od000u000esm\" width=\"1080\" height=\"532\" \/><\/p>\n<p><strong>Mask Edge Blur<\/strong>: Determines how much the edges of the mask should be feathered to avoid generating an image with a pronounced sense of edge seams.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29278\" title=\"27566cc4j00ss1aik000wd000r8005xm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/27566cc4j00ss1aik000wd000r8005xm.jpg\" alt=\"27566cc4j00ss1aik000wd000r8005xm\" width=\"980\" height=\"213\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29279\" title=\"4afcff0aj00ss1aiq01imd000u000u0m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/4afcff0aj00ss1aiq01imd000u000u0m.jpg\" alt=\"4afcff0aj00ss1aiq01imd000u000u0m\" width=\"1080\" height=\"1080\" \/><\/p>\n<p>III. Summary<\/p>\n<p>Through today's study, we have not only mastered the knowledge points related to doodling and partial redrawing, but also learned how to achieve accurate image editing through these techniques. These techniques will play an important role in our real projects and help us improve the quality of image generation.<\/p>\n<p>I hope this article helped you unlock new skills in image editing and inspired your creativity. We'll see you in the next section!<\/p>","protected":false},"excerpt":{"rendered":"<p>In this section, we will explore the magical world of graffiti and partial redrawing, learn how to change the color of the image through these techniques, add a logo, and even fix the flaws in the picture. I. Graffiti: a new dimension of image editing In the study of Tuchengtu, we often encounter the need to accurately change the color or details of a part of the image. Graffiti function came into being, which allows us to modify the reference image directly, and then the Tupelo function to achieve the color of the region to change. 1. Role and Parameters of Graffiti The Graffiti interface is similar to that of Tupelo, but it achieves precise color replacement by directly modifying the pixels of the reference image. We can use palette and brush tools to change the color of the image. The following are two important parameters in Graffiti: Brush Size: Adjust the size of the brush<\/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-29271","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\/29271","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=29271"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/29271\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=29271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=29271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=29271"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=29271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}