{"id":29280,"date":"2025-02-23T09:00:36","date_gmt":"2025-02-23T01:00:36","guid":{"rendered":"https:\/\/www.1ai.net\/?p=29280"},"modified":"2025-02-21T21:14:35","modified_gmt":"2025-02-21T13:14:35","slug":"stable-diffusion%e6%80%8e%e4%b9%88%e7%94%a8%ef%bc%9fstable-diffusion%e5%b1%80%e9%83%a8%e9%87%8d%e7%bb%98%e7%9a%84%e9%ab%98%e7%ba%a7%e6%8a%80%e5%b7%a7","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/29280.html","title":{"rendered":"How to use Stable Diffusion Advanced tips for Stable Diffusion localized repainting"},"content":{"rendered":"<p>\u4eca\u5929\u6211\u4eec\u5c06\u7ee7\u7eed\u63a2\u7d22\u5c40\u90e8\u91cd\u7ed8\u7684\u9ad8\u7ea7\u6280\u5de7\uff0c\u5305\u62ec\u8499\u7248\u6a21\u5f0f\u3001\u8499\u7248\u533a\u57df\u5185\u5bb9\u5904\u7406\u3001\u91cd\u7ed8\u533a\u57df\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u4ee5\u53ca\u5c40\u90e8\u91cd\u7ed8\u7684\u4e00\u4e9b\u6ce8\u610f\u70b9\u3002\u6211\u4eec\u5c06\u4ee5AI\u6a21\u7279\u6362\u8138\u4f5c\u4e3a\u5b9e\u6218\u6848\u4f8b\uff0c\u5e2e\u52a9\u5927\u5bb6\u6df1\u5165\u7406\u89e3\u548c\u638c\u63e1\u5c40\u90e8\u91cd\u7ed8\u7684\u7cbe\u534e\u3002<\/p>\n<p>\u4e00\u3001\u8499\u7248\u6a21\u5f0f<\/p>\n<p>\u8499\u7248\u6a21\u5f0f\u662f\u6211\u4eec\u5728\u5c40\u90e8\u91cd\u7ed8\u4e2d\u7ecf\u5e38\u4f7f\u7528\u7684\u6280\u5de7\uff0c\u5b83\u5206\u4e3a\u91cd\u7ed8\u8499\u7248\u5185\u5bb9\u548c\u91cd\u7ed8\u975e\u8499\u7248\u5185\u5bb9\u4e24\u79cd\u6a21\u5f0f\uff0c\u5206\u522b\u5bf9\u5e94\u4e0d\u540c\u7684\u9700\u6c42\u573a\u666f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29281\" title=\"dbbf9c0aj00ss1anx0016d000qi007rm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/dbbf9c0aj00ss1anx0016d000qi007rm.jpg\" alt=\"dbbf9c0aj00ss1anx0016d000qi007rm\" width=\"954\" height=\"279\" \/><\/p>\n<p><strong>1.\u91cd\u7ed8\u8499\u7248\u5185\u5bb9<\/strong><\/p>\n<p>\u9002\u7528\u4e8e\u9700\u8981\u6539\u53d8\u6a21\u7279\u7684\u80cc\u666f\u6216\u8863\u670d\u7b49\u7279\u5b9a\u533a\u57df\uff0c\u800c\u4fdd\u6301\u5176\u4ed6\u90e8\u5206\u4e0d\u53d8\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29300\" title=\"c31757a1j00ss1bfn01bdd000u000u0p\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/c31757a1j00ss1bfn01bdd000u000u0p.jpg\" alt=\"c31757a1j00ss1bfn01bdd000u000u0p\" width=\"1080\" height=\"1080\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29301\" title=\"2beff79ej00ss1bf4016vd000qo00qop\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/2beff79ej00ss1bf4016vd000qo00qop.jpg\" alt=\"2beff79ej00ss1bf4016vd000qo00qop\" width=\"960\" height=\"960\" \/><\/p>\n<p><strong>2.\u91cd\u7ed8\u975e\u8499\u7248\u5185\u5bb9<\/strong><\/p>\n<p>\u9002\u7528\u4e8e\u9700\u8981\u4fdd\u7559\u9762\u90e8\uff0c\u800c\u6539\u53d8\u9762\u90e8\u4ee5\u5916\u7684\u6240\u6709\u533a\u57df\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29302\" title=\"c31757a1j00ss1bed01bdd000u000u0p\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/c31757a1j00ss1bed01bdd000u000u0p.jpg\" alt=\"c31757a1j00ss1bed01bdd000u000u0p\" width=\"1080\" height=\"1080\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29303\" title=\"ecff93a2j00ss1bdl01d8d000qo00qop\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/ecff93a2j00ss1bdl01d8d000qo00qop.jpg\" alt=\"ecff93a2j00ss1bdl01d8d000qo00qop\" width=\"960\" height=\"960\" \/><\/p>\n<p>\u901a\u8fc7\u8c03\u6574\u8499\u7248\u6a21\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u7cbe\u786e\u63a7\u5236\u54ea\u4e9b\u533a\u57df\u9700\u8981\u91cd\u7ed8\uff0c\u4ee5\u8fbe\u5230\u9884\u671f\u7684\u6548\u679c\u3002<\/p>\n<p>\u4e8c\u3001\u8499\u7248\u533a\u57df\u5185\u5bb9\u5904\u7406<\/p>\n<p>\u8499\u7248\u533a\u57df\u5185\u5bb9\u5904\u7406\u662f\u5c40\u90e8\u91cd\u7ed8\u4e2d\u6700\u96be\u638c\u63e1\u7684\u90e8\u5206\uff0c\u4f46\u4e5f\u662f\u6700\u5173\u952e\u7684\u3002\u5b83\u6d89\u53ca\u5230\u5982\u4f55\u5728\u8499\u7248\u6d82\u62b9\u7684\u5730\u65b9\u5b8c\u5168\u62b9\u53bb\u539f\u56fe\u4fe1\u606f\uff0c\u5e76\u586b\u5145\u4e0a\u65b0\u7684\u5185\u5bb9\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29284\" title=\"4f517069j00ss1anx001id000q6009km\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/4f517069j00ss1anx001id000q6009km.jpg\" alt=\"4f517069j00ss1anx001id000q6009km\" width=\"942\" height=\"344\" \/><\/p>\n<p><strong>1.\u586b\u5145\u6a21\u5f0f<\/strong><\/p>\n<p>\u5728\u8499\u7248\u533a\u57df\u586b\u5145\u539f\u56fe\u6a21\u7cca\u5316\u7684\u50cf\u7d20\uff0c\u7565\u5fae\u53c2\u8003\u539f\u56fe\u7684\u8272\u8c03\u8fdb\u884c\u91cd\u7ed8\uff0c\u91cd\u7ed8\u5e45\u5ea6\u5e94\u5927\u4e8e0.8\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29286\" title=\"dbc2fe25p00ss1anz005jd000u00035m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/dbc2fe25p00ss1anz005jd000u00035m.png\" alt=\"dbc2fe25p00ss1anz005jd000u00035m\" width=\"1080\" height=\"113\" \/><\/p>\n<p><strong>2.\u539f\u56fe\u6a21\u5f0f<\/strong><\/p>\n<p>\u6700\u5e38\u7528\u7684\u6a21\u5f0f\uff0c\u57fa\u4e8e\u539f\u56fe\u7684\u57fa\u7840\u4e0a\u94fa\u566a\u70b9\u518d\u53bb\u566a\uff0c\u91cd\u7ed8\u5e45\u5ea6\u5c0f\u7684\u65f6\u5019\u4e0e\u539f\u56fe\u76f8\u5173\u6027\u9ad8\uff0c\u5927\u7684\u65f6\u5019\u5219\u65e0\u5173\uff0c\u91cd\u7ed8\u5e45\u5ea60-1\u4e4b\u95f4\u7686\u53ef\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29287\" title=\"90d713a3p00ss1anz005nd000u00035m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/90d713a3p00ss1anz005nd000u00035m.png\" alt=\"90d713a3p00ss1anz005nd000u00035m\" width=\"1080\" height=\"113\" \/><\/p>\n<p><strong>3.\u6f5c\u7a7a\u95f4\u566a\u58f0<\/strong><\/p>\n<p>\u4ee5\u566a\u58f0\u7684\u65b9\u5f0f\u586b\u5145\uff0c\u5f7b\u5e95\u62b9\u6389\u539f\u56fe\u7684\u4fe1\u606f\uff0c\u91cd\u7ed8\u6548\u679c\u975e\u5e38\u5f7b\u5e95\uff0c\u91cd\u7ed8\u5e45\u5ea6\u5e94\u5927\u4e8e0.8\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29290\" title=\"97b3b34dp00ss1anz005wd000u00035m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/97b3b34dp00ss1anz005wd000u00035m.png\" alt=\"97b3b34dp00ss1anz005wd000u00035m\" width=\"1080\" height=\"113\" \/><\/p>\n<p><strong>4.\u7a7a\u767d\u6f5c\u7a7a\u95f4<\/strong><\/p>\n<p>\u62b9\u6389\u6240\u6709\u539f\u56fe\u4fe1\u606f\u540e\uff0c\u586b\u5145\u7edf\u4e00\u7684\u68d5\u8272\uff0c\u5b9e\u73b0\u5e95\u56fe\u989c\u8272\u4e00\u81f4\u7684\u91cd\u7ed8\uff0c\u91cd\u7ed8\u5e45\u5ea6\u5e94\u5927\u4e8e0.8\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29288\" title=\"8bd44eacp00ss1anz005ld000u00035m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/8bd44eacp00ss1anz005ld000u00035m.png\" alt=\"8bd44eacp00ss1anz005ld000u00035m\" width=\"1080\" height=\"113\" \/><\/p>\n<p>\u4e09\u3001\u91cd\u7ed8\u533a\u57df\uff1a\u6574\u5f20\u56fe\u7247\u4e0e\u4ec5\u8499\u7248\u533a\u57df<\/p>\n<p>\u91cd\u7ed8\u533a\u57df\u7684\u8bbe\u7f6e\u51b3\u5b9a\u4e86<a href=\"https:\/\/www.1ai.net\/en\/tag\/stable-diffusion\" title=\"\u3010\u67e5\u770b\u542b\u6709[Stable Diffusion]\u6807\u7b7e\u7684\u6587\u7ae0\u3011\" target=\"_blank\" rel=\"noopener\">Stable Diffusion<\/a>\u8ba1\u7b97\u7684\u50cf\u7d20\u8303\u56f4\uff0c\u5206\u4e3a\u6574\u5f20\u56fe\u7247\u548c\u4ec5\u8499\u7248\u533a\u57df\u4e24\u4e2a\u9009\u9879\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29289\" title=\"e785657fj00ss1anw000pd000q4004gm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/e785657fj00ss1anw000pd000q4004gm.jpg\" alt=\"e785657fj00ss1anw000pd000q4004gm\" width=\"940\" height=\"160\" \/><\/p>\n<p><strong>1.\u6574\u5f20\u56fe\u7247<\/strong><\/p>\n<p>\u8003\u8651\u5168\u56fe\u7684\u5185\u5bb9\u60c5\u51b5\u4e0b\u53bb\u751f\u6210\u5c40\u90e8\uff0c\u751f\u6210\u7684\u51c6\u786e\u5ea6\u9ad8\uff0c\u4f46\u65e0\u6cd5\u91cd\u7ed8\u8d85\u5927\u56fe\u6216\u5c0f\u5c3a\u5bf8\u56fe\u7684\u9ad8\u7cbe\u5ea6\u91cd\u7ed8\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29291\" title=\"65e4231cj00ss1ao000cmd000e800e8m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/65e4231cj00ss1ao000cmd000e800e8m.jpg\" alt=\"65e4231cj00ss1ao000cmd000e800e8m\" width=\"512\" height=\"512\" \/><\/p>\n<p><strong>2.\u4ec5\u8499\u7248\u533a\u57df<\/strong><\/p>\n<p>\u53ea\u8003\u8651\u91cd\u7ed8\u7684\u90e8\u5206\u53bb\u751f\u6210\u5c40\u90e8\u7684\u5185\u5bb9\uff0c\u4e0d\u53d7\u5206\u8fa8\u7387\u5f71\u54cd\uff0c\u9002\u7528\u4e8e\u8d85\u5927\u56fe\u548c\u5c0f\u5c3a\u5bf8\u56fe\u7684\u9ad8\u7cbe\u5ea6\u91cd\u7ed8\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29297\" title=\"b6cd2577j00ss1ao000cld000e800e8m-1\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/b6cd2577j00ss1ao000cld000e800e8m-1.jpg\" alt=\"b6cd2577j00ss1ao000cld000e800e8m-1\" width=\"512\" height=\"512\" \/><\/p>\n<p><strong>2.1 \u4ec5\u8499\u7248\u533a\u57df\u4e0b\u8fb9\u7f18\u9884\u7559\u50cf\u7d20<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29298\" title=\"190c1ce2j00ss1anz00cyd000e800e8m-1\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/190c1ce2j00ss1anz00cyd000e800e8m-1.jpg\" alt=\"190c1ce2j00ss1anz00cyd000e800e8m-1\" width=\"512\" height=\"512\" \/><\/p>\n<p><strong>2.2\u8fb9\u7f18\u9884\u7559\u50cf\u7d20\u53c2\u6570\u5bf9\u9762\u90e8\u50cf\u7d20\u5bc6\u5ea6\u7684\u5f71\u54cd<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29296\" title=\"2f3a385ej00ss1anz00cpd000e800e8m-1\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/2f3a385ej00ss1anz00cpd000e800e8m-1.jpg\" alt=\"2f3a385ej00ss1anz00cpd000e800e8m-1\" width=\"512\" height=\"512\" \/><\/p>\n<p>\u56db\u3001\u5e94\u7528\u6848\u4f8b\uff1aAI\u6a21\u7279\u6362\u8138<\/p>\n<p>\u6211\u4eec\u5c06\u901a\u8fc7AI\u6a21\u7279\u6362\u8138\u7684\u6848\u4f8b\uff0c\u6f14\u793a\u5982\u4f55\u5c06\u5c40\u90e8\u91cd\u7ed8\u7684\u7406\u8bba\u77e5\u8bc6\u5e94\u7528\u5230\u5b9e\u9645\u9879\u76ee\u4e2d\u3002<\/p>\n<p>\u901a\u8fc7\u8c03\u6574\u8499\u7248\u6a21\u5f0f\u548c\u91cd\u7ed8\u533a\u57df\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7Lora\u7cbe\u786e\u5730\u66ff\u6362\u6a21\u7279\u7684\u9762\u90e8\uff0c\u540c\u65f6\u4fdd\u6301\u5176\u4ed6\u533a\u57df\u7684\u4e00\u81f4\u6027\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29282\" title=\"c31757a1j00ss1ao301bdd000u000u0m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/c31757a1j00ss1ao301bdd000u000u0m.jpg\" alt=\"c31757a1j00ss1ao301bdd000u000u0m\" width=\"1080\" height=\"1080\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29299\" title=\"6d46b937j00ss1ao2017gd000qo00qom-1\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/6d46b937j00ss1ao2017gd000qo00qom-1.jpg\" alt=\"6d46b937j00ss1ao2017gd000qo00qom-1\" width=\"960\" height=\"960\" \/><\/p>\n<p>\u4e94\u3001\u603b\u7ed3<\/p>\n<p>\u672c\u8282\u5185\u5bb9\u6211\u4eec\u5b66\u4e60\u4e86Stable Diffusion\u5c40\u90e8\u91cd\u7ed8\u7684\u9ad8\u7ea7\u77e5\u8bc6\u70b9\uff0c\u8fd9\u4e9b\u77e5\u8bc6\u867d\u7136\u96be\u5ea6\u8f83\u5927\uff0c\u4f46\u901a\u8fc7\u53cd\u590d\u7ec3\u4e60\u548c\u5b9e\u8df5\uff0c\u76f8\u4fe1\u5927\u5bb6\u80fd\u591f\u5c06\u8fd9\u4e9b\u77e5\u8bc6\u70b9\u878d\u4f1a\u8d2f\u901a\u3002\u5728\u672a\u6765\u7684\u9879\u76ee\u4e2d\uff0c\u8fd9\u4e9b\u6280\u5de7\u5c06\u5927\u653e\u5f02\u5f69\u3002<\/p>\n<p>\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u5e2e\u52a9\u4f60\u6df1\u5165\u7406\u89e3Stable Diffusion\u7684\u5c40\u90e8\u91cd\u7ed8\u529f\u80fd\uff0c\u5e76\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u7075\u6d3b\u8fd0\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we will continue to explore the advanced techniques of localized repainting, including the mask mode, mask area content processing, knowledge about repainting area, and some notes on localized repainting. We will use the AI model face change as a real-world case to help you deeply understand and master the essence of local repainting. I. Masking Mode Masking mode is a technique we often use in local repainting, which is divided into two modes: repainting masked content and repainting non-masked content, corresponding to different demand scenarios. 1. Repaint Mask Content It is suitable for changing the background or clothes of the model, while keeping the other parts unchanged. 2. Redraw Unmasked Content is used when you need to keep the face and change all areas other than the face. By adjusting the mask mode, we can precisely control which areas need to be repainted to<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[149,144],"tags":[2328,197,198],"collection":[262],"class_list":["post-29280","post","type-post","status-publish","format-standard","hentry","category-jiaocheng","category-baike","tag-ai","tag-stable-diffusion","collection-stablediffusion"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/29280","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=29280"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/29280\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=29280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=29280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=29280"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=29280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}