{"id":24120,"date":"2026-06-10T15:06:10","date_gmt":"2026-06-10T07:06:10","guid":{"rendered":"https:\/\/ab123.xyz\/?p=24120"},"modified":"2026-06-10T15:06:10","modified_gmt":"2026-06-10T07:06:10","slug":"stable-diffusion-controlnet-%e8%be%b9%e7%bc%98%e6%a3%80%e6%b5%8b%e5%8f%82%e6%95%b0%e8%af%a6%e8%a7%a3%ef%bc%9a%e7%b2%be%e5%87%86%e6%8e%a7%e5%88%b6%e7%94%9f%e6%88%90%e5%9b%be%e5%83%8f%e8%bd%ae%e5%bb%93","status":"publish","type":"post","link":"https:\/\/ab123.xyz\/?p=24120","title":{"rendered":"Stable Diffusion ControlNet \u8fb9\u7f18\u68c0\u6d4b\u53c2\u6570\u8be6\u89e3\uff1a\u7cbe\u51c6\u63a7\u5236\u751f\u6210\u56fe\u50cf\u8f6e\u5ed3\u7684\u6743\u5a01\u6307\u5357"},"content":{"rendered":"<p>\u5728 AI \u56fe\u50cf\u751f\u6210\u9886\u57df\uff0cStable Diffusion \u4e0e ControlNet \u7684\u7ec4\u5408\u5df2\u6210\u4e3a\u4e13\u4e1a\u521b\u4f5c\u8005\u4e0d\u53ef\u6216\u7f3a\u7684\u5229\u5668\u3002\u5176\u4e2d\uff0c\u8fb9\u7f18\u68c0\u6d4b\u529f\u80fd\u901a\u8fc7\u63d0\u53d6\u8f93\u5165\u56fe\u50cf\u7684\u8f6e\u5ed3\u4fe1\u606f\uff0c\u8ba9\u7528\u6237\u80fd\u7cbe\u786e\u63a7\u5236\u751f\u6210\u56fe\u50cf\u7684\u6784\u56fe\u4e0e\u7ec6\u8282\u3002\u672c\u6587\u5c06\u6df1\u5165\u89e3\u6790 ControlNet \u8fb9\u7f18\u68c0\u6d4b\u7684\u6838\u5fc3\u53c2\u6570\uff0c\u5e2e\u52a9\u60a8\u5145\u5206\u53d1\u6325\u8fd9\u4e00\u5de5\u5177\u7684\u6f5c\u529b\u3002<\/p>\n<p>\u5b98\u65b9\u5de5\u5177\u94fe\u63a5\uff1a<a href=\"https:\/\/github.com\/lllyasviel\/ControlNet\" target=\"_blank\">ControlNet \u5b98\u65b9\u7f51\u7ad9<\/a><\/p>\n<h2>ControlNet \u8fb9\u7f18\u68c0\u6d4b\u7684\u6838\u5fc3\u539f\u7406<\/h2>\n<p>ControlNet \u5229\u7528 Canny \u8fb9\u7f18\u68c0\u6d4b\u7b97\u6cd5\uff0c\u5c06\u53c2\u8003\u56fe\u50cf\u7684\u8fb9\u7f18\u7279\u5f81\u63d0\u53d6\u4e3a\u6761\u4ef6\u8f93\u5165\uff0c\u6307\u5bfc\u6269\u6563\u6a21\u578b\u5728\u751f\u6210\u8fc7\u7a0b\u4e2d\u4fdd\u7559\u7279\u5b9a\u8f6e\u5ed3\u3002\u8fd9\u4e00\u6280\u672f\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5efa\u7b51\u7ebf\u7a3f\u8f6c\u6548\u679c\u56fe\u3001\u52a8\u6f2b\u89d2\u8272\u7cbe\u51c6\u590d\u73b0\u3001\u4ea7\u54c1\u8bbe\u8ba1\u901f\u5199\u6e32\u67d3\u7b49\u573a\u666f\u3002\u6700\u65b0\u7814\u7a76\u663e\u793a\uff0c\u7ed3\u5408\u6df1\u5ea6\u5b66\u4e60\u4f18\u5316\u540e\u7684\u8fb9\u7f18\u68c0\u6d4b\u5668\uff0c\u53ef\u5728\u590d\u6742\u5149\u5f71\u4e0b\u4ecd\u4fdd\u6301 95% \u4ee5\u4e0a\u7684\u8fb9\u7f18\u8fde\u7eed\u6027\u3002<\/p>\n<h3>\u8fb9\u7f18\u68c0\u6d4b\u7684\u5e95\u5c42\u5de5\u4f5c\u673a\u5236<\/h3>\n<p>ControlNet \u901a\u8fc7\u9884\u8bad\u7ec3\u7684\u6743\u91cd\u51bb\u7ed3\u4e3b\u6a21\u578b\u53c2\u6570\uff0c\u4ec5\u5b66\u4e60\u989d\u5916\u6761\u4ef6\u63a7\u5236\u5206\u652f\u3002\u5f53\u8f93\u5165\u8fb9\u7f18\u56fe\u65f6\uff0c\u7f51\u7edc\u4f1a\u5c06\u8f6e\u5ed3\u4fe1\u606f\u7f16\u7801\u4e3a\u7a7a\u95f4\u63a7\u5236\u4fe1\u53f7\uff0c\u4e0e\u6587\u672c\u63d0\u793a\u5171\u540c\u4f5c\u7528\u4e8e UNet \u7684\u89e3\u7801\u5c42\u3002\u8fd9\u79cd\u673a\u5236\u4f7f\u751f\u6210\u7ed3\u679c\u65e2\u80fd\u9075\u5faa\u7528\u6237\u6307\u5b9a\u7684\u6784\u56fe\uff0c\u53c8\u80fd\u4fdd\u7559 Stable Diffusion \u539f\u6709\u7684\u521b\u610f\u591a\u6837\u6027\u3002<\/p>\n<h2>\u5173\u952e\u53c2\u6570\u8be6\u89e3\u4e0e\u8c03\u4f18\u7b56\u7565<\/h2>\n<h3>Preprocessor Resolution\uff08\u9884\u5904\u7406\u5206\u8fa8\u7387\uff09<\/h3>\n<p>\u6b64\u53c2\u6570\u63a7\u5236\u8fb9\u7f18\u68c0\u6d4b\u7684\u8f93\u5165\u56fe\u50cf\u5c3a\u5bf8\uff0c\u5e38\u89c1\u503c\u4e3a 512 \u81f3 1024\u3002\u5206\u8fa8\u7387\u8d8a\u9ad8\uff0c\u8fb9\u7f18\u7ec6\u8282\u8d8a\u4e30\u5bcc\uff0c\u4f46\u8ba1\u7b97\u6210\u672c\u4e5f\u5448\u6307\u6570\u589e\u957f\u3002\u63a8\u8350\u7528\u4e8e\u7cbe\u7ec6\u7ebf\u7a3f\u65f6\u4f7f\u7528 1024\uff0c\u800c\u5bf9\u7c97\u7c92\u5ea6\u6784\u56fe\u63a7\u5236\u53ef\u964d\u81f3 512\u3002<\/p>\n<h3>Canny Low Threshold \u4e0e High Threshold\uff08\u53cc\u9608\u503c\u8bbe\u5b9a\uff09<\/h3>\n<p>\u8fd9\u662f Canny \u7b97\u6cd5\u7684\u7075\u9b42\u53c2\u6570\u3002Low Threshold \u51b3\u5b9a\u5f31\u8fb9\u7f18\u7684\u4fdd\u7559\u8303\u56f4\uff0cHigh Threshold \u754c\u5b9a\u5f3a\u8fb9\u7f18\u7684\u6fc0\u6d3b\u9608\u503c\u3002\u5b9e\u8df5\u4e2d\u5efa\u8bae Low=50, High=150 \u4f5c\u4e3a\u901a\u7528\u8d77\u70b9\uff1b\u82e5\u9700\u7a81\u51fa\u4e3b\u7ebf\u6761\u3001\u5ffd\u7565\u7eb9\u7406\u566a\u58f0\uff0c\u53ef\u5c06 High \u63d0\u5347\u81f3 200 \u4ee5\u4e0a\u3002<\/p>\n<h3>Control Weight\uff08\u63a7\u5236\u6743\u91cd\uff09<\/h3>\n<p>\u8be5\u503c\u8c03\u63a7\u8fb9\u7f18\u6761\u4ef6\u5bf9\u751f\u6210\u7ed3\u679c\u7684\u5f71\u54cd\u529b\uff0c\u53d6\u503c\u8303\u56f4 0-2\u3002\u6743\u91cd\u4e3a 1 \u65f6\u4fdd\u6301\u5747\u8861\uff0c\u8d85\u8fc7 1.2 \u4f1a\u5f3a\u5236\u751f\u6210\u56fe\u50cf\u4e25\u683c\u8d34\u5408\u8fb9\u7f18\uff0c\u4f4e\u4e8e 0.8 \u5219\u8ba9\u6587\u672c\u63d0\u793a\u4e3b\u5bfc\u3002\u5178\u578b\u5e94\u7528\uff1a\u5728\u673a\u68b0\u8bbe\u8ba1\u6e32\u67d3\u4e2d\u8bbe\u4e3a 1.5 \u786e\u4fdd\u87ba\u4e1d\u5b54\u4f4d\u7cbe\u51c6\uff0c\u800c\u5728\u827a\u672f\u521b\u4f5c\u4e2d\u8bbe\u4e3a 0.6 \u4fdd\u7559\u624b\u7ed8\u677e\u5f1b\u611f\u3002<\/p>\n<h2>\u5b9e\u6218\u5e94\u7528\u573a\u666f\u4e0e\u6848\u4f8b<\/h2>\n<p>\u4ee5\u8fd1\u671f\u79d1\u6280\u70ed\u70b9\u4e3a\u4f8b\uff0c\u56fd\u5185\u67d0 AI \u5b9e\u9a8c\u5ba4\u53d1\u5e03\u7684\u201c\u65f6\u7a7a\u7b14\u5237\u201d\u9879\u76ee\u5229\u7528 ControlNet \u8fb9\u7f18\u68c0\u6d4b\u53c2\u6570\uff0c\u5b9e\u73b0\u4e86\u4ece\u5b9e\u62cd\u89c6\u9891\u5230\u4e8c\u7ef4\u52a8\u753b\u98ce\u683c\u7684\u5b9e\u65f6\u8f6c\u6362\u3002\u7528\u6237\u53ea\u9700\u8c03\u8282 Canny \u9608\u503c\u548c Control Weight\uff0c\u5373\u53ef\u5728\u4fdd\u6301\u4eba\u7269\u52a8\u4f5c\u8f6e\u5ed3\u7684\u524d\u63d0\u4e0b\uff0c\u81ea\u7531\u5207\u6362\u6c34\u5f69\u3001\u6cb9\u753b\u7b49\u7b14\u89e6\u98ce\u683c\u3002\u8fd9\u4e00\u6280\u672f\u6b63\u88ab\u5e94\u7528\u4e8e\u5f71\u89c6\u9884\u53ef\u89c6\u5316\u4e0e\u5143\u5b87\u5b99\u5185\u5bb9\u5236\u4f5c\u3002<\/p>\n<h3>\u884c\u4e1a\u4e3b\u6d41\u5de5\u4f5c\u6d41\u7a0b\u5efa\u8bae<\/h3>\n<ul>\n<li>\u7b2c\u4e00\u6b65\uff1a\u5728 Stable Diffusion WebUI \u4e2d\u52a0\u8f7d ControlNet \u6269\u5c55\uff0c\u4e0a\u4f20\u53c2\u8003\u8349\u56fe<\/li>\n<li>\u7b2c\u4e8c\u6b65\uff1a\u9009\u62e9\u9884\u5904\u7406\u5668\u201cCanny\u201d\u5e76\u8bbe\u7f6e\u5206\u8fa8\u7387\u4e0e\u53cc\u9608\u503c<\/li>\n<li>\u7b2c\u4e09\u6b65\uff1a\u8f93\u5165\u76f8\u5173\u63d0\u793a\u8bcd\uff0c\u8c03\u6574 Control Weight \u81f3 0.8-1.2 \u533a\u95f4\u8fdb\u884c\u521d\u59cb\u6d4b\u8bd5<\/li>\n<li>\u7b2c\u56db\u6b65\uff1a\u6839\u636e\u8f93\u51fa\u7ed3\u679c\u9010\u6b65\u5fae\u8c03\u53c2\u6570\uff0c\u5fc5\u8981\u65f6\u542f\u7528\u201cPixel Perfect\u201d\u6a21\u5f0f\u4ee5\u81ea\u52a8\u5bf9\u9f50\u5c3a\u5bf8<\/li>\n<\/ul>\n<h2>\u6743\u5a01\u603b\u7ed3\u4e0e\u8fdb\u9636\u63a8\u8350<\/h2>\n<p>\u638c\u63e1 ControlNet \u8fb9\u7f18\u68c0\u6d4b\u53c2\u6570\uff0c\u610f\u5473\u7740\u4f60\u62e5\u6709\u4e86\u5bf9 AI \u521b\u4f5c\u65b9\u5411\u7684\u9ad8\u7cbe\u5ea6\u9065\u63a7\u5668\u3002\u4ece\u65b0\u624b\u5230\u4e13\u4e1a\u753b\u5e08\uff0c\u90fd\u80fd\u901a\u8fc7\u53c2\u6570\u7ec4\u5408\u5b9e\u73b0\u4ece\u201c\u6a21\u7cca\u63a7\u5236\u201d\u5230\u201c\u50cf\u7d20\u7ea7\u5bf9\u9f50\u201d\u7684\u8de8\u8d8a\u3002\u5efa\u8bae\u7ed3\u5408\u5b98\u65b9\u793a\u4f8b\u4e0e\u793e\u533a\u6700\u4f73\u5b9e\u8df5\uff08\u5982 Civitai \u4e0a\u7684\u53c2\u6570\u9884\u8bbe\uff09\uff0c\u5728\u8fed\u4ee3\u4e2d\u5f62\u6210\u81ea\u5df1\u7684\u53c2\u6570\u5e93\u3002<\/p>\n<p>\u7acb\u5373\u4f53\u9a8c\u5de5\u5177\uff1a<a href=\"https:\/\/github.com\/lllyasviel\/ControlNet\" target=\"_blank\">ControlNet \u5b98\u65b9 GitHub \u4ed3\u5e93<\/a> \u2014 \u652f\u6301\u6240\u6709\u4e3b\u6d41 Stable Diffusion \u7248\u672c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 AI \u56fe\u50cf\u751f\u6210\u9886\u57df\uff0cStable Diffusion \u4e0e ControlNet \u7684\u7ec4\u5408\u5df2\u6210\u4e3a\u4e13\u4e1a\u521b\u4f5c\u8005\u4e0d\u53ef [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[6224,27083,6221,6220,27082],"class_list":["post-24120","post","type-post","status-publish","format-standard","hentry","category-4","tag-ai","tag-canny","tag-controlnet","tag-stable-diffusion","tag-27082"],"_links":{"self":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/24120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24120"}],"version-history":[{"count":1,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/24120\/revisions"}],"predecessor-version":[{"id":24121,"href":"https:\/\/ab123.xyz\/index.php?rest_route=\/wp\/v2\/posts\/24120\/revisions\/24121"}],"wp:attachment":[{"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ab123.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}