{"id":29372,"date":"2025-03-01T09:26:31","date_gmt":"2025-03-01T01:26:31","guid":{"rendered":"https:\/\/www.1ai.net\/?p=29372"},"modified":"2025-02-21T21:29:33","modified_gmt":"2025-02-21T13:29:33","slug":"stable-diffusion%e6%80%8e%e4%b9%88%e7%94%a8%ef%bc%9fstable-diffusion%e6%8f%92%e4%bb%b6controlnet%e7%9a%84%e7%ba%bf%e7%a8%bf%e7%a1%ac%e8%be%b9%e7%bc%98%e4%b8%8e%e8%bd%af%e8%be%b9%e7%bc%98%e6%a8%a1","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/29372.html","title":{"rendered":"How to use Stable Diffusion, the Stable Diffusion plugin ControlNet's line drawing hard and soft edge modes."},"content":{"rendered":"<p>\u8fd9\u8282\u5185\u5bb9\u6211\u4eec\u5c06\u6df1\u5165\u63a2\u8ba8ControlNet\u7684\u7ebf\u7a3f\u786c\u8fb9\u7f18\u4e0e\u8f6f\u8fb9\u7f18\u6a21\u5f0f\u3002\u901a\u8fc7\u672c\u8282\u5185\u5bb9\uff0c\u4f60\u5c06\u5b66\u4e60\u5230\u7ebf\u6761\u7ea6\u675f\u7684\u57fa\u672c\u539f\u7406\u3001\u786c\u8fb9\u7f18\u6a21\u5f0f\u4e0e\u8f6f\u8fb9\u7f18\u6a21\u5f0f\u7684\u5e94\u7528\uff0c\u4ee5\u53ca\u5b83\u4eec\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u7684\u91cd\u8981\u6027\u3002<\/p>\n<p>\u4e00\u3001\u4ec0\u4e48\u662f\u7ebf\u6761\u7ea6\u675f\uff1f<\/p>\n<p>\u7ebf\u6761\u7ea6\u675f\u662fControlNet\u4e2d\u7528\u4e8e\u6307\u5bfc<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>\u751f\u6210\u7ed3\u679c\u7684\u4e00\u79cd\u65b9\u5f0f\uff0c\u5b83\u901a\u8fc7\u63d0\u53d6\u7ebf\u6761\u7279\u5f81\u6765\u5f71\u54cd\u6700\u7ec8\u56fe\u50cf\u7684\u751f\u6210\u3002\u7ebf\u6761\u7ea6\u675f\u5728Stable Diffusion\u4e2d\u7684\u91cd\u8981\u6027\u4e0d\u8a00\u800c\u55bb\uff0c\u5b83\u5141\u8bb8\u6211\u4eec\u4ece\u591a\u4e2a\u7ef4\u5ea6\u63a7\u5236\u56fe\u50cf\u7684\u751f\u6210\u3002<\/p>\n<p>\u4e8c\u3001\u786c\u8fb9\u7f18\u6a21\u5f0f\uff08Canny\uff09<\/p>\n<p>\u786c\u8fb9\u7f18\u6a21\u5f0f\u662fControlNet\u6700\u65e9\u51fa\u73b0\u7684\u529f\u80fd\u4e4b\u4e00\uff0c\u5b83\u80fd\u591f\u7cbe\u786e\u63d0\u53d6\u56fe\u7247\u4e2d\u7269\u54c1\u7684\u8fb9\u7f18\uff0c\u4f7f\u5f97\u751f\u6210\u7684\u56fe\u7247\u5728\u8f6e\u5ed3\u4e0a\u4e0e\u8f93\u5165\u56fe\u7247\u975e\u5e38\u76f8\u4f3c\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29373\" title=\"634a4a46j00ss1c2y005md000u000esm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/634a4a46j00ss1c2y005md000u000esm.jpg\" alt=\"634a4a46j00ss1c2y005md000u000esm\" width=\"1080\" height=\"532\" \/><\/p>\n<p>\u786c\u8fb9\u7f18\u6a21\u5f0f\u7684\u5e94\u7528\u6848\u4f8b<\/p>\n<p>1.1\u4ea7\u54c1\u91cd\u65b0\u8bbe\u8ba1<\/p>\n<p>\u4ee5\u4e00\u4e2a\u5546\u4e1a\u8ba2\u5355\u6848\u4f8b\u4e3a\u4f8b\uff0c\u5982\u4f55\u4f7f\u7528\u786c\u8fb9\u7f18\u6a21\u5f0f\u5728\u4fdd\u7559\u978b\u5b50\u8f6e\u5ed3\u548c\u7248\u578b\u7684\u60c5\u51b5\u4e0b\uff0c\u5bf9\u5176\u989c\u8272\u548c\u6750\u8d28\u8fdb\u884c\u968f\u673a\u66ff\u6362\uff0c\u4e3a\u8bbe\u8ba1\u5e08\u63d0\u4f9b\u7075\u611f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29374\" title=\"c2b12ab7j00ss1c2v001dd000sg00hsm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/c2b12ab7j00ss1c2v001dd000sg00hsm.jpg\" alt=\"c2b12ab7j00ss1c2v001dd000sg00hsm\" width=\"1024\" height=\"640\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29375\" title=\"8c6845e5j00ss1c2y0035d000u000irm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/8c6845e5j00ss1c2y0035d000u000irm.jpg\" alt=\"8c6845e5j00ss1c2y0035d000u000irm\" width=\"1080\" height=\"675\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29376\" title=\"e51bc2cdj00ss1c2v000yd000lc00e8m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/e51bc2cdj00ss1c2v000yd000lc00e8m.jpg\" alt=\"e51bc2cdj00ss1c2v000yd000lc00e8m\" width=\"768\" height=\"512\" \/><\/p>\n<p>1.2 \u7ebf\u7a3f\u751f\u6210<\/p>\n<p>\u6211\u4eec\u7528\u4e00\u5f20\u4e8c\u6b21\u5143\u4eba\u7269\u751f\u6210\u7ebf\u7a3f\u56fe\u4e3a\u4f8b\uff0c\u8bf4\u660e\u786c\u8fb9\u7f18\u6a21\u5f0f\u5728\u7ebf\u7a3f\u751f\u6210\u7684\u5e94\u7528\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29377\" title=\"7bcbb8e2j00ss1c2v000id000e800e8m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/7bcbb8e2j00ss1c2v000id000e800e8m.jpg\" alt=\"7bcbb8e2j00ss1c2v000id000e800e8m\" width=\"512\" height=\"512\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29378\" title=\"73acccf9j00ss1c2y00dvd000u000u0m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/73acccf9j00ss1c2y00dvd000u000u0m.jpg\" alt=\"73acccf9j00ss1c2y00dvd000u000u0m\" width=\"1080\" height=\"1080\" \/><\/p>\n<p>1.3\u7ebf\u7a3f\u4e0a\u8272<\/p>\n<p>\u6211\u4eec\u8fd8\u53ef\u4ee5\u7ed9\u7ebf\u7a3f\u56fe\u4e0a\u8272\uff0c\u548c\u7ebf\u7a3f\u751f\u6210\u7684\u8fc7\u7a0b\u521a\u597d\u76f8\u53cd\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29379\" title=\"cdf2bfbfj00ss1c2y00a5d000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/cdf2bfbfj00ss1c2y00a5d000e800lcm.jpg\" alt=\"cdf2bfbfj00ss1c2y00a5d000e800lcm\" width=\"512\" height=\"768\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29380\" title=\"650401b9j00ss1c31025ud000sg016om\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/650401b9j00ss1c31025ud000sg016om.jpg\" alt=\"650401b9j00ss1c31025ud000sg016om\" width=\"1024\" height=\"1536\" \/><\/p>\n<p>\u786c\u8fb9\u7f18\u6a21\u5f0f\u7684\u4f18\u70b9\u4e0e\u7f3a\u70b9<\/p>\n<p>\u786c\u8fb9\u7f18\u6a21\u5f0f\u7684\u4f18\u70b9\u5728\u4e8e\u5176\u7cbe\u786e\u6027\uff0c\u4f46\u5b83\u4e5f\u5b58\u5728\u4e00\u4e9b\u95ee\u9898\uff0c\u5982\u7ec6\u8282\u7ecf\u4e0d\u8d77\u7ec6\u770b\u3001\u5bf9\u6750\u8d28\u7684\u8fd8\u539f\u4e0d\u591f\u4ed4\u7ec6\u7b49\u3002\u6b64\u5916\uff0c\u786c\u8fb9\u7f18\u6a21\u5f0f\u5728\u5904\u7406\u4e8c\u6b21\u5143\u56fe\u7247\u65f6\uff0c\u5bb9\u6613\u5c06\u8f6e\u5ed3\u8bc6\u522b\u6210\u53cc\u4efd\uff0c\u5bfc\u81f4\u751f\u6210\u7684\u56fe\u50cf\u51fa\u73b0\u4e00\u4e9b\u95ee\u9898\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29379\" title=\"cdf2bfbfj00ss1c2y00a5d000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/cdf2bfbfj00ss1c2y00a5d000e800lcm.jpg\" alt=\"cdf2bfbfj00ss1c2y00a5d000e800lcm\" width=\"512\" height=\"768\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29381\" title=\"fee96562j00ss1c2y002ld000lc00w0m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/fee96562j00ss1c2y002ld000lc00w0m.jpg\" alt=\"fee96562j00ss1c2y002ld000lc00w0m\" width=\"768\" height=\"1152\" \/><\/p>\n<p>\u4e09\u3001\u8f6f\u8fb9\u7f18\u6a21\u5f0f\uff08SoftEdge\uff09<\/p>\n<p>\u4e3a\u4e86\u89e3\u51b3\u786c\u8fb9\u7f18\u6a21\u5f0f\u7684\u95ee\u9898\uff0c\u8f6f\u8fb9\u7f18\u6a21\u5f0f\u5e94\u8fd0\u800c\u751f\u3002\u5b83\u901a\u8fc7\u67d4\u5316\u8fb9\u7f18\u6765\u907f\u514d\u53cc\u7ebf\u6761\u7684\u95ee\u9898\uff0c\u4f46\u540c\u65f6\u4e5f\u727a\u7272\u4e86\u4e00\u5b9a\u7684\u7ea6\u675f\u80fd\u529b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29382\" title=\"42863c9ej00ss1c2x005vd000u000esm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/42863c9ej00ss1c2x005vd000u000esm.jpg\" alt=\"42863c9ej00ss1c2x005vd000u000esm\" width=\"1080\" height=\"532\" \/><\/p>\n<p>\u8f6f\u8fb9\u7f18\u6a21\u5f0f\u7684\u5e94\u7528\u6848\u4f8b<\/p>\n<p>\u6211\u4eec\u901a\u8fc7\u4e00\u4e2a\u732b\u7684\u6848\u4f8b\uff0c\u5c55\u793a\u8f6f\u8fb9\u7f18\u6a21\u5f0f\u5728\u5904\u7406\u8fb9\u7f18\u63d0\u53d6\u65f6\u7684\u4f18\u52bf\uff0c\u5c24\u5176\u662f\u5728\u907f\u514d\u53cc\u7ebf\u6761\u95ee\u9898\u4e0a\u7684\u8868\u73b0\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29383\" title=\"56f18ed9j00ss1c2v000xd000e800e8m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/56f18ed9j00ss1c2v000xd000e800e8m.jpg\" alt=\"56f18ed9j00ss1c2v000xd000e800e8m\" width=\"512\" height=\"512\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29385\" title=\"422a081cj00ss1c2y0086d000lc00lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/422a081cj00ss1c2y0086d000lc00lcm.jpg\" alt=\"422a081cj00ss1c2y0086d000lc00lcm\" width=\"768\" height=\"768\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29384\" title=\"7af95349j00ss1c32017zd000sg00sgm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/7af95349j00ss1c32017zd000sg00sgm.jpg\" alt=\"7af95349j00ss1c32017zd000sg00sgm\" width=\"1024\" height=\"1024\" \/><\/p>\n<p>\u8f6f\u8fb9\u7f18\u6a21\u5f0f\u7684\u4f18\u70b9\u4e0e\u7f3a\u70b9<\/p>\n<p>\u8f6f\u8fb9\u7f18\u6a21\u5f0f\u7684\u4f18\u70b9\u5728\u4e8e\u5176\u5bf9\u8fb9\u7f18\u7684\u67d4\u5316\u5904\u7406\uff0c\u4f46\u5b83\u7684\u7ea6\u675f\u80fd\u529b\u8f83\u5f31\uff0c\u53ef\u80fd\u5bfc\u81f4\u751f\u6210\u7684\u56fe\u50cf\u5728\u7ed3\u6784\u4e0a\u4e0e\u539f\u56fe\u6709\u6240\u5dee\u5f02\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29379\" title=\"cdf2bfbfj00ss1c2y00a5d000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/cdf2bfbfj00ss1c2y00a5d000e800lcm.jpg\" alt=\"cdf2bfbfj00ss1c2y00a5d000e800lcm\" width=\"512\" height=\"768\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29380\" title=\"650401b9j00ss1c31025ud000sg016om\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/650401b9j00ss1c31025ud000sg016om.jpg\" alt=\"650401b9j00ss1c31025ud000sg016om\" width=\"1024\" height=\"1536\" \/><\/p>\n<p>\u56db\u3001ControlNet\u7684\u9884\u5904\u7406\u5668<\/p>\n<p>ControlNet\u63d0\u4f9b\u4e86\u591a\u79cd\u9884\u5904\u7406\u5668\uff0c\u5305\u62ec\u786c\u8fb9\u7f18\u548c\u8f6f\u8fb9\u7f18\u7684\u4e0d\u540c\u53d8\u4f53\uff0c\u4ee5\u9002\u5e94\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29387\" title=\"43c0a2ebj00ss1c2x004ed000u000esm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/43c0a2ebj00ss1c2x004ed000u000esm.jpg\" alt=\"43c0a2ebj00ss1c2x004ed000u000esm\" width=\"1080\" height=\"532\" \/><\/p>\n<p>\u9884\u5904\u7406\u5668\u4e2d\u8fd8\u6709\u4e00\u4e2a\u201c\u65e0\u201d\u7684\u9009\u9879\uff0c\u5b83\u5141\u8bb8\u6211\u4eec\u76f4\u63a5\u4e0a\u4f20\u7279\u5f81\u56fe\u8fdb\u884c\u751f\u6210\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29386\" title=\"a12237e7j00ss1c2x004yd000u000esm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/a12237e7j00ss1c2x004yd000u000esm.jpg\" alt=\"a12237e7j00ss1c2x004yd000u000esm\" width=\"1080\" height=\"532\" \/><\/p>\n<p>\u9884\u5904\u7406\u5668\u7684\u53cd\u8f6c\u6a21\u5f0f<\/p>\n<p>\u9884\u5904\u7406\u5668\u7684\u53cd\u8f6c\u6a21\u5f0f\u5141\u8bb8\u6211\u4eec\u5c06\u9ed1\u7ebf\u767d\u5e95\u7684\u7ebf\u7a3f\u8f6c\u5316\u4e3a\u8ba1\u7b97\u673a\u53ef\u8bc6\u522b\u7684\u767d\u7ebf\u9ed1\u5e95\u7684\u7279\u5f81\u56fe\uff0c\u4ee5\u9002\u5e94\u4e0d\u540c\u7684\u751f\u6210\u9700\u6c42\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29388\" title=\"99978313j00ss1c2x002jd000rp009km\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/99978313j00ss1c2x002jd000rp009km.jpg\" alt=\"99978313j00ss1c2x002jd000rp009km\" width=\"997\" height=\"344\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29379\" title=\"cdf2bfbfj00ss1c2y00a5d000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/cdf2bfbfj00ss1c2y00a5d000e800lcm.jpg\" alt=\"cdf2bfbfj00ss1c2y00a5d000e800lcm\" width=\"512\" height=\"768\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29389\" title=\"0e3520e9j00ss1c2x00a6d000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/0e3520e9j00ss1c2x00a6d000e800lcm.jpg\" alt=\"0e3520e9j00ss1c2x00a6d000e800lcm\" width=\"512\" height=\"768\" \/><\/p>\n<p>\u9608\u503c\u63a7\u5236<\/p>\n<p>ControlNet\u4e2d\u9608\u503c\u7684\u63a7\u5236\uff0c\u51b3\u5b9a\u4e86\u7279\u5f81\u63d0\u53d6\u7684\u7cbe\u7ec6\u5ea6\u3002\u901a\u8fc7\u8c03\u6574\u9608\u503c\uff0c\u6211\u4eec\u53ef\u4ee5\u63a7\u5236\u751f\u6210\u56fe\u50cf\u4e2d\u7ebf\u6761\u7684\u7a00\u758f\u7a0b\u5ea6\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29390\" title=\"3eb5fc54j00ss1c2w0012d000po008sm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/3eb5fc54j00ss1c2w0012d000po008sm.jpg\" alt=\"3eb5fc54j00ss1c2w0012d000po008sm\" width=\"924\" height=\"316\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29379\" title=\"cdf2bfbfj00ss1c2y00a5d000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/cdf2bfbfj00ss1c2y00a5d000e800lcm.jpg\" alt=\"cdf2bfbfj00ss1c2y00a5d000e800lcm\" width=\"512\" height=\"768\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29391\" title=\"0bf8c986j00ss1c30001gd000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/0bf8c986j00ss1c30001gd000e800lcm.jpg\" alt=\"0bf8c986j00ss1c30001gd000e800lcm\" width=\"512\" height=\"768\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29381\" title=\"fee96562j00ss1c2y002ld000lc00w0m\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2025\/02\/fee96562j00ss1c2y002ld000lc00w0m.jpg\" alt=\"fee96562j00ss1c2y002ld000lc00w0m\" width=\"768\" height=\"1152\" \/><\/p>\n<p>\u4e94\u3001\u603b\u7ed3<\/p>\n<p>\u901a\u8fc7\u672c\u8282\u5185\u5bb9\u7684\u5b66\u4e60\uff0c\u6211\u4eec\u5bf9ControlNet\u7684\u786c\u8fb9\u7f18\u4e0e\u8f6f\u8fb9\u7f18\u6a21\u5f0f\u6709\u4e86\u6df1\u5165\u7684\u7406\u89e3\uff0c\u5e76\u638c\u63e1\u4e86\u5982\u4f55\u6839\u636e\u9879\u76ee\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u7ebf\u6761\u7ea6\u675f\u65b9\u5f0f\u3002<\/p>\n<p>\u8fd9\u4e9b\u77e5\u8bc6\u5c06\u4e3a\u6211\u4eec\u540e\u7eed\u7684\u5b66\u4e60\u548c\u5b9e\u8df5\u6253\u4e0b\u575a\u5b9e\u7684\u57fa\u7840\u3002<\/p>\n<p>\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3ControlNet\u7684\u7ebf\u6761\u7ea6\u675f\u6a21\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this section we will take an in-depth look at ControlNet's Line Drawing Hard and Soft Edge modes. Through this section, you will learn the basic principles of line constraints, the application of hard edge mode and soft edge mode, and their importance in real projects. I. What is Line Constraints? Line constraints are a way used in ControlNet to guide the results of Stable Diffusion, which affects the generation of the final image by extracting line features. The importance of line constraints in Stable Diffusion is self-evident, as it allows us to control the image generation from multiple dimensions. Hard Edge Mode (Canny) Hard Edge Mode is one of the earliest features of ControlNet, which can precisely<\/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-29372","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\/29372","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=29372"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/29372\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=29372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=29372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=29372"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=29372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}