AI drawing (7) stable diffusion drawing partial redrawing

Partial redrawing is to redraw only part of the area in the image.

Image incoming

The first step is to upload the picture to Stable Diffusion, and paint the place we need to redraw. The specific steps are shown in the figure below.

The second step, parameter setting

1 . drawing area

Full image: Stable Diffusion will draw the entire image.

Mask Only: Only the mask content is drawn, and other places are not affected. (Draw where you painted black with a brush)

2 . facial repair

3 . Resize to, to make the generated picture clearer.

Get the plotted result:

Using ControlNet

During local redrawing, the background may be modified. In some specific cases, this is not what we need.

So we need to use another model Candy--line draft detection model.

Candy will detect the line draft of a given graphic, and in ControlNet, the detection result will be used to intervene in the generated image. Since Candy detects the specific details of the original image, after using the Candy line drawing model of ControlNet, the details of the generated image will be similar to the original image.

The models selected in [Preprocessing] and [Model] must correspond, otherwise, another effect will be generated.

It can be seen that the modified picture is only different from the original picture in the hair color, and the rest is basically the same.

epilogue

So, today we introduce here. Interested friends can follow us, we will continue to update this series of tutorials.

If you think it is good and helpful to you, you can follow me, and more content will be released in the future. You can also join our planet, pay attention to the official account, reply to "planet", get the invitation code, and you can join. If you don't know what our planet is, you can read this article, which has a detailed introduction.

Empowering AI tools to achieve efficient cash realization and early leave from get off work

I am discussing interesting topics with my friends at "AI High Efficiency [Work, Study]", why don't you come together?
https://t.zsxq.com/11KVfN0RChttps://t.zsxq.com/11KVfN0RC

The public account @AI宅player No. 2 player is an obsessed practitioner who relies on AI to help study and work. There are 20,000+ fans on the whole network, and the AI ​​that Xiaobai can also play is continuously updated, allowing you to leave work 2 hours earlier.

What's on the planet:
e-competition column, deep learning column, AI-assisted learning column, AI tool monetization column, etc.

Suitable for the crowd:
Students in school: I hope my experience can help you solve the problems you encounter.
Developers: Share your own experience, and you can broaden your path and learn more.
Hope to make money with side jobs: We use AI The way of cashing out can help you make money with sideline business​

In fact, rigid standards cannot limit us with infinite possibilities, so ah! Come on guys!

Guess you like

Origin blog.csdn.net/qq_48764574/article/details/132306699