How to Creat & Color Black and White Line Drawings in Stable Diffusion ?

Omniinfer
2 min readAug 10, 2023

--

Let’s start with a comparison picture

1. Generating black and white line drawings in Stable Diffusion

First, use the Positive and Negative prompts to generate a black and white Line drawing (you can also draw it yourself or upload an existing one)

  • Positive prompt:masterpiece, best quality, 1girl, solo, long_hair, looking_at_viewer, smile, dress, ribbon, jewelry, very_long_hair, hair_ribbon, flower, bracelet, two_side_up, hand_on_own_face, head_rest, hand_on_own_cheek, lineart, monochrome, <lora:animeoutlineV4_16:1>
  • Negative prompt:EasyNegative, badhandv4
  • Other information

Clip skip:2

Sampling method: DPM++ 2M Karras

Sampling Steps: 20

Size: 512x512

CFG scale: 7

Seed: 2591912724

Checkpoint: revAnimated_v122

Lora:animeoutlineV4_16_23894

2. coloring black and white line drawings

Open the ControlNet plugin, upload the generated black and white line drawing, click Enable, select the Control Type canny, then it will correspond to the generation of the preprocessor canny, the model control_v11p_sd15. Other parameters can be kept by default. Finally, click Generate to color the black and white line drawing.

All the images above were generated using Free NO GPU WebUI

--

--

Omniinfer

Fastest generation in just 2s, Pay-As-You-Go, $0.0015 for each standard image, and 15% off for high-volume usage, you can add your own models