Practical operation of stable diffusion - redrawing

Series Article Directory

This article specifically opens a section to write about partial redrawing related content. Before reading it, you can pay attention to it simultaneously:
stable diffusion practical operation


提示:写完文章后,目录可以自动生成,如何生成可参考右边的帮助文档


foreword

This chapter mainly introduces the function of partial redrawing. The article draws on the video of station B. If you are interested, watch it directly:
link entry: teach you to play with partial redrawing


提示:以下是本篇文章正文内容,下面案例可供参考

1. What is partial redrawing?

When we generate a very good picture, but some places are flawed, we need to redraw the part.
It can be redrawn for a part of a large image, which is equivalent to correction fluid.

2. Use steps

1. Generate a picture [redraw]

Black out the areas that need to be repainted

Tips to adjust the size of the pie

Keep the original prompt word unchanged, and then add some desired ones.
parameter settings

Prompt words are added (I modified the redrawing area and changed it to eyes, and the display effect is better), and the result is generated

3. Use of mask function

1. Partial redrawing

Mask is a professional term in the image field. It generally refers to some range objects used to limit the processing area. The literal meaning is a plate that covers some key areas. Our black area above is a mask.

parameter settings

In the picture above, we change the background, delete all the original prompt words, redraw the non-masked content instead, and write the content you want in the prompt words

At this time, the background is switched, but the border is still a bit strange, like a cutout

At this time, we increase [Edge Blur] + [Mask Reserved Pixels]
The latter has the same meaning as the reserved length of block enlargement

The edge blur is very similar to the feathering in ps, and it is generally set to about 10.

Mask reserved pixels, which is the buffer zone, can be set to 32

We can even modify the counter to produce even better ones.

In short, the bottom mold, lora, everything can be changed

This function can be used to cut out pictures.

2. Graffiti redrawing (drawing masks)

3. Mask redrawing (advanced)

This is actually using professional drawing tools instead of graffiti to achieve more accurate redrawing
(slowly added later)


Summarize

Key points:
mask area,
redrawing range,
prompt word,
edge blur

`That's all about partial repainting.

Guess you like

Origin blog.csdn.net/weixin_43360707/article/details/132655537