AI painting hand-drawn drafts are quickly generated, and stable diffusion is used to convert images into line drafts

In the previous article, I shared with you how to convert line drawings of pictures into Wensheng drawings.

Stable Diffusion [Application] [Line drawing to drawing]: Convert image to line drawing in one minute

The conversion of image to line drawing can also be achieved by using the method of image generation. Let's first look at the effect of using the method of image generation to convert image to line drawing.

1. How to convert pictures into line drawings

[Step 1] Upload the raw image with white background

Here we use Meitu XiuXiu to create a pure white background image. Upload this white background image in the Image Generator menu.

AI painting hand-drawn drafts are quickly generated, and stable diffusion is used to convert images into line drafts

[Step 2]: Selection of large model

Recommended here: majicMIX realistic V7.

Model download address (you can also get the network disk address at the end of the article)

LiblibAI:https://www.liblib.art/modelinfo/bced6d7ec1460ac7b923fc5bc95c4540

Step 3:Prompt wordWriting

Positive prompt words

Prompt:lineart,line drawing,sketching,blank and white,clean white background,masterpiece,best quality,fine detail,8K,UHD,wallpaper,

Prompt word: line art, line drawing, sketch, blank and white, clean white background, masterpiece, best quality, fine details, 8K, UHD, wallpaper

Reverse prompt word

negative

Related parameter settings

  • Sampler: Euler a
  • Sampling iteration number: 20
  • Image width and height: 512*768 (same as the original image to be transferred)
  • Prompt word guidance coefficient (CFG): 7
  • Redraw amplitude: 0.75

[Step 4]: ControlNet settings

AI painting hand-drawn drafts are quickly generated, and stable diffusion is used to convert images into line drafts

The relevant parameter settings are as follows:

  • Control Type: Select "Lineart"
  • Preprocessor: lineart_realistic
  • Model: control_v11p_sd15_lineart
  • Control weight: 1

【Step 5】Image generation

Click the [Generate] button and let’s take a look at the final generated image effect.

AI painting hand-drawn drafts are quickly generated, and stable diffusion is used to convert images into line drafts
AI painting hand-drawn drafts are quickly generated, and stable diffusion is used to convert images into line drafts

2. Related comparison

(1) The image generation method does not need to use the loar model of the line drawing type. I have tried using lora Anime Lineart/Manga-like, and I personally feel that the effect is not very good. However, different people may have different opinions. You can refer to the following pictures for comparison.

No loar used

Use loar

AI painting hand-drawn drafts are quickly generated, and stable diffusion is used to convert images into line drafts
AI painting hand-drawn drafts are quickly generated, and stable diffusion is used to convert images into line drafts

(2) According to current tests, the effect of transferring real-life pictures is relatively good. However, when transferring line drawings of architectural pictures, the lines are very thin, which makes the pictures look unclear.

AI painting hand-drawn drafts are quickly generated, and stable diffusion is used to convert images into line drafts
AI painting hand-drawn drafts are quickly generated, and stable diffusion is used to convert images into line drafts

After adding the AnimeLineart/Manga-like loar, the image clarity has improved. However, there is still room for optimization and improvement in the architectural re-drawing.

No loar used

Use loar

AI painting hand-drawn drafts are quickly generated, and stable diffusion is used to convert images into line drafts
AI painting hand-drawn drafts are quickly generated, and stable diffusion is used to convert images into line drafts

(3) I personally feel that the method of realizing the picture-based drawing is better than the method of realizing the text-based drawing. The lines are clearer and simpler, and the line drawing effect is more realistic.

Vincent Figure

Figure 1

AI painting hand-drawn drafts are quickly generated, and stable diffusion is used to convert images into line drafts
AI painting hand-drawn drafts are quickly generated, and stable diffusion is used to convert images into line drafts

Okay, that’s all for today’s sharing. I hope that what I shared today will be helpful to you.

The model is placed in the network disk, and those who are interested can take it!

https://pan.quark.cn/s/b3df771404e2

 

statement:The content is collected from various media platforms such as public websites. If the included content infringes on your rights, please contact us by email and we will deal with it as soon as possible.
Encyclopedia

How to use AI tools to replace characters in videos with one click? How effective is AI at changing faces and people?

2024-8-9 10:27:45

TutorialEncyclopedia

The latest literary model FLUX is popular, FLUX model introduction and installation guide

2024-8-10 10:28:19

Cart
Coupons
Search