{"id":17602,"date":"2024-08-09T09:57:40","date_gmt":"2024-08-09T01:57:40","guid":{"rendered":"https:\/\/www.1ai.net\/?p=17602"},"modified":"2024-08-09T10:10:40","modified_gmt":"2024-08-09T02:10:40","slug":"%e4%bb%80%e4%b9%88%e8%bd%af%e4%bb%b6%e5%8f%af%e4%bb%a5%e5%b0%86%e7%85%a7%e7%89%87%e8%bd%ac%e4%b8%ba%e7%ba%bf%e7%a8%bf%ef%bc%9f%e7%94%a8stable-diffusion%e4%b8%80%e5%88%86%e9%92%9f%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/17602.html","title":{"rendered":"What software can convert photos into line drawings? Use Stable Diffusion to convert pictures into line drawings in one minute"},"content":{"rendered":"<p data-track=\"1\" data-pm-slice=\"0 0 []\">Today we start the application<a href=\"https:\/\/www.1ai.net\/en\/tag\/%e5%9b%be%e7%89%87%e8%bd%ac%e7%bb%98\" title=\"[Sees articles with [photograms] labels]\" target=\"_blank\" >Image transfer<\/a>There are many different application scenarios for image-to-drawing, such as image-to-line drawing, image-to-illustration, image-to-comic, etc. This is also one of the more common application directions of AI painting in actual scenes. Here we start with the production method of image-to-line drawing.<\/p>\n<p data-track=\"2\"><strong>1. How to convert pictures into line drawings<\/strong><\/p>\n<p data-track=\"3\"><strong>[Step 1]: Selection of large model<\/strong><\/p>\n<p data-track=\"4\">It is recommended to use: ReVAnimated, version v122.<\/p>\n<p data-track=\"5\">Model download address (you can also get the network disk address at the end of the article)<\/p>\n<blockquote class=\"pgc-blockquote-abstract\">\n<p data-track=\"6\"><strong>LiblibAI<\/strong>:https:\/\/www.liblib.art\/modelinfo\/1004b01e19714137a593e30007f3c737<\/p>\n<\/blockquote>\n<p data-track=\"7\"><strong>\u3010Step 2\u3011\uff1aWriting prompt words<\/strong><\/p>\n<p data-track=\"8\"><strong>Positive prompt words<\/strong><\/p>\n<blockquote class=\"pgc-blockquote-abstract\">\n<p data-track=\"9\"><strong>Prompt<\/strong>\uff1alineart,line drawing,sketching,blank and white,clean white background,masterpiece,best quality<\/p>\n<p data-track=\"10\"><strong>Prompt word<\/strong>: line art, line drawing, sketch, blank and white, clean white background, masterpiece, best quality<\/p>\n<\/blockquote>\n<p data-track=\"11\"><strong>Reverse prompt word<\/strong><\/p>\n<blockquote class=\"pgc-blockquote-abstract\">\n<p data-track=\"12\">negative<\/p>\n<\/blockquote>\n<p data-track=\"13\">Related parameter settings<\/p>\n<ul>\n<li data-track=\"14\">Sampler: Euler a<\/li>\n<li data-track=\"15\">Sampling iteration number: 20<\/li>\n<li data-track=\"16\">Image width and height: 512*768 (same as the original image to be transferred)<\/li>\n<li data-track=\"17\">Prompt word guidance coefficient (CFG): 7<\/li>\n<\/ul>\n<p data-track=\"18\"><strong>\u3010Step 3\u3011\uff1aSetting up the Loar model<\/strong><\/p>\n<p data-track=\"19\"><strong>Here are some of the most commonly used LORA models:<\/strong><\/p>\n<p data-track=\"20\"><strong>loar1: AnimeLineart\/Manga-like, version v3.0manga-like<\/strong><\/p>\n<blockquote class=\"pgc-blockquote-abstract\">\n<p data-track=\"21\"><strong>LiblibAI<\/strong>: https:\/\/www.liblib.art\/modelinfo\/8ae788b53a968e4b9770586682060997<\/p>\n<\/blockquote>\n<p data-track=\"22\">No trigger words required.<\/p>\n<p data-track=\"23\"><strong>loar2: Line Art Model-Photo-to-Image-2.0<\/strong><\/p>\n<blockquote class=\"pgc-blockquote-abstract\">\n<p data-track=\"24\"><strong>LiblibAI<\/strong>: https:\/\/www.liblib.art\/modelinfo\/a9debe2f847b1ba199cf4c70ba5c2a58<\/p>\n<\/blockquote>\n<p data-track=\"25\">Trigger words: line, monochrome, greyscale<\/p>\n<p data-track=\"26\"><strong>loar3: Lineart, Linear, Line Library, Hand-drawn<\/strong><\/p>\n<blockquote class=\"pgc-blockquote-abstract\">\n<p data-track=\"27\"><strong>LiblibAI<\/strong>: https:\/\/www.liblib.art\/modelinfo\/c7df992d6d8f48428fcf16114f28c6f0<\/p>\n<\/blockquote>\n<p data-track=\"28\">No trigger words required.<\/p>\n<p data-track=\"29\">Here we use the loar1 AnimeLineart model and set the weight to 1. You can try other loar models freely.<\/p>\n<p data-track=\"30\"><strong>[Step 4]: ControlNet settings<\/strong><\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17603\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/get-252.jpg\" alt=\"\" width=\"1080\" height=\"600\" \/><\/div>\n<p data-track=\"31\">The relevant parameter settings are as follows:<\/p>\n<ul>\n<li data-track=\"32\">Control type: Select \"Lineart\"<\/li>\n<li data-track=\"33\">Preprocessor: lineart_realistic<\/li>\n<li data-track=\"34\">Model: control_v11p_sd15_lineart<\/li>\n<li data-track=\"35\">Control weight: 1<\/li>\n<\/ul>\n<p data-track=\"36\"><strong>\u3010Step 5\u3011Image generation<\/strong><\/p>\n<p data-track=\"37\">Click the [Generate] button and let\u2019s take a look at the final generated image effect.<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<div class=\"pgc-img\">\n<div class=\"pgc-img\" data-pm-slice=\"0 0 []\">\n<div class=\"pgc-img\" data-pm-slice=\"0 0 []\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17606\" title=\"ac19de46j00shxhxr0013d000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/ac19de46j00shxhxr0013d000e800lcm.jpg\" alt=\"ac19de46j00shxhxr0013d000e800lcm\" width=\"512\" height=\"768\" \/><\/div>\n<\/div>\n<\/div>\n<\/td>\n<td>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17608\" title=\"75b373a5j00shxhxr001fd000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/75b373a5j00shxhxr001fd000e800lcm.jpg\" alt=\"75b373a5j00shxhxr001fd000e800lcm\" width=\"512\" height=\"768\" \/><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p data-track=\"38\"><strong>2. Using ControlNet&#039;s softedge control model<\/strong><\/p>\n<p data-track=\"39\">In addition to using ControlNet&#039;s lineart control model, you can also use ControlNet&#039;s softedge control model.<\/p>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17604\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/get-253.jpg\" alt=\"\" width=\"1080\" height=\"599\" \/><\/div>\n<p data-track=\"41\">Let&#039;s take a look at the generated image.<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17607\" title=\"ac19de46j00shxhxr0013d000e800lcm-1\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/ac19de46j00shxhxr0013d000e800lcm-1.jpg\" alt=\"ac19de46j00shxhxr0013d000e800lcm-1\" width=\"512\" height=\"768\" \/><\/div>\n<\/td>\n<td>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17609\" title=\"5c898672j00shxhxr0011d000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/5c898672j00shxhxr0011d000e800lcm.jpg\" alt=\"5c898672j00shxhxr0011d000e800lcm\" width=\"512\" height=\"768\" \/><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p data-track=\"42\">Let&#039;s look at the comparison of other pictures.<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17610\" title=\"892f2e25j00shxhxr000rd000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/892f2e25j00shxhxr000rd000e800lcm.jpg\" alt=\"892f2e25j00shxhxr000rd000e800lcm\" width=\"512\" height=\"768\" \/><\/div>\n<\/td>\n<td>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17611\" title=\"031c44fbj00shxhxr000qd000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/031c44fbj00shxhxr000qd000e800lcm.jpg\" alt=\"031c44fbj00shxhxr000qd000e800lcm\" width=\"512\" height=\"768\" \/><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17612\" title=\"087c98bej00shxhxr000zd000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/087c98bej00shxhxr000zd000e800lcm.jpg\" alt=\"087c98bej00shxhxr000zd000e800lcm\" width=\"512\" height=\"768\" \/><\/div>\n<\/td>\n<td>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17613\" title=\"fe9c372bj00shxhxr000xd000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/fe9c372bj00shxhxr000xd000e800lcm.jpg\" alt=\"fe9c372bj00shxhxr000xd000e800lcm\" width=\"512\" height=\"768\" \/><\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17615\" title=\"ec6d0755j00shxhxr0010d000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/ec6d0755j00shxhxr0010d000e800lcm.jpg\" alt=\"ec6d0755j00shxhxr0010d000e800lcm\" width=\"512\" height=\"768\" \/><\/div>\n<\/td>\n<td>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17614\" title=\"56672695j00shxhxr0014d000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/56672695j00shxhxr0014d000e800lcm.jpg\" alt=\"56672695j00shxhxr0014d000e800lcm\" width=\"512\" height=\"768\" \/><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p data-track=\"43\"><strong>3. Related instructions<\/strong><\/p>\n<p data-track=\"44\">(1) When using the ControlNet lineart model to redraw an image, the lines are sometimes thin and not particularly obvious. You can draw lots multiple times to see the effect.<\/p>\n<p data-track=\"45\">(2) According to current tests, the effect of transferring real-life pictures is relatively good, but I personally feel that there is still room for improvement in the transfer of buildings.<\/p>\n<p data-track=\"46\">(3) The keywords related to lines and colors are used in the prompts: lineart, line drawing, sketching, blank and white, clean white background.<\/p>\n<p data-track=\"47\">If only lineart is used, the generated image may still be colored.<\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17615\" title=\"ec6d0755j00shxhxr0010d000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/ec6d0755j00shxhxr0010d000e800lcm.jpg\" alt=\"ec6d0755j00shxhxr0010d000e800lcm\" width=\"512\" height=\"768\" \/><\/div>\n<\/td>\n<td>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17616\" title=\"0c41f209j00shxhxr0012d000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/0c41f209j00shxhxr0012d000e800lcm.jpg\" alt=\"0c41f209j00shxhxr0012d000e800lcm\" width=\"512\" height=\"768\" \/><\/div>\n<\/td>\n<td>\n<div class=\"pgc-img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17617\" title=\"6890aa7fj00shxhxr0013d000e800lcm\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/08\/6890aa7fj00shxhxr0013d000e800lcm.jpg\" alt=\"6890aa7fj00shxhxr0013d000e800lcm\" width=\"512\" height=\"768\" \/><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p data-track=\"48\">Okay, that\u2019s all for today\u2019s sharing. I hope that what I shared today will be helpful to you.<\/p>\n<p data-track=\"49\">The model is placed in the network disk, and those who are interested can take it!<\/p>\n<p data-track=\"50\">https:\/\/pan.quark.cn\/s\/b3df771404e2<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Today we start the series of sharing of the application chapter of the picture to painting, picture to painting has many different application scenarios, such as picture to line drawing, picture to illustration, picture to cartoon and so on. This is also one of the more common application directions of AI painting in actual scenarios. Here we start with the production method of picture to line drawing. I. Picture to line drawing production method \u3010Step 1\u3011: the choice of a large model Here we recommend the use of: ReVAnimated, version v122. Model download address (the end of the net disk address can also be obtained) LiblibAI:https:\/\/www.liblib.art\/modelinfo\/ 1004b01e19714137a593e30007f3c737 \u3010Step 2\u3011\uff1aTips on the word<\/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,3937],"collection":[262],"class_list":{"0":"post-17602","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":"tag-3937","12":"collection-stablediffusion"},"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/17602","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=17602"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/17602\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=17602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=17602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=17602"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=17602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}