[stable diffusion actual combat] AI painting (11) art QR code complete drawing tutorial

introduce

Art QR code is a new type of QR code that combines art and modern technology. It has the characteristics of aesthetics and strong functionality. Compared with ordinary QR codes, this type of code has greatly improved viewing and has many application scenarios.

Get the original image of the QR code

QR code original image

The picture above shows the most common QR code style. Although this style is popular, it has obvious positioning points, which is not conducive to our higher-level artistic creation. In order to meet the needs of higher-level artistic creation, we can explore more diverse QR code styles and make corresponding polishes and improvements.

Change the QR code style

First of all, we need to change the style of the QR code so that we can get better processed pictures.

1. Forage QR code: Forage QR code decoder (analyze the URL information of the original QR code)

2. Anthony QR code: https://qrcode.antfu.me/ (generate a new QR code based on the URL information)

first step:

Step two:

third step:

the fourth step:

the fifth step:

Step six:

Step seven:

Step Eight:

The rest of the parameters can be defaulted, and then save the modified QR code locally.

      

Both of these two QR codes can be scanned, and can also be recognized by long pressing. You can try it.

  • Stable diffusion treatment

Step 1: Select a large model and fill in the prompts.

Here I chose two large models, one is a realistic model, and the other is an anime character model

CounterfeitV30_V30 : anime character style

revAnimated_v122 : realistic style

Anime Character Style Tips:

Prompt

(1girl), long hair, perfect body, windy, blue sky background, full shot,natural light,(masterpiece,high quality),Highly detailed,

Negative Prompt

nsfw,logo,text,badhandv4,EasyNegative,ng_deepnegative_v1_75t,rev2-badprompt,verybadimagenegative_v1.3,negative_hand-neg,mutated hands and fingers,poorly drawn face,extra limb,missing limb,disconnected limbs,malformed hands,ugly,

Realistic style prompts:

Prompt

girl cherry blossoms,tree, no humans, blue sky background,natural light,nobody,8K, best quality,realistic,octane,masterpiece,Highly detailed,
Negative prompt:

nsfw, logo, text, badhandv4, EasyNegative, ng_deepnegative_v1_75t, rev2-badprompt, verybadimagenegative_v1.3, negative_hand-neg, mutated hands and fingers, poorly drawn face, extra limb, missing limb, disconnected limbs, malformed hands, ugly,

The details are as follows:

Step 2: Add detail settings

This plug-in is mainly for models with characters, and it is not very useful for models without characters.

Step Three: ControlNet Setup

In ControlNet, two control models are needed, qrcode monster and brightness.

qrcode monster model: It can be understood as a graph-generated graph model dedicated to QR codes ( it is recommended to set the control weight between 1.2 and 1.5) . The larger the value of the parameter controlling the weight, the easier it is to scan the image, but the QR code style is also more obvious; the smaller the value, the more room for AI to play, and the image is more like the image you want, but it can be successful. The probability of scanning codes is also smaller. It is recommended to start with 1.5 first, then gradually reduce the optimization, and then reduce or increase the optimization according to the quality of the image output.

Brightness model: adjust the light and dark contrast of the image, that is, make the bright places in the picture bright and the dark places dark, so as to improve the recognition rate (recommended between 0.15 and 0.3). The introduction timing is 0.2~0.5, the exit timing is 0.6~0.9, and the intervention time is set at about 30%~40%. (Tips: If the generated picture can be scanned but cannot be recognized by long press, you can try to improve the exit timing).

The following are the specific settings, the settings of the realistic model and the anime character model are the same.

qrcode monster model setup 1:

qrcode monster model setup 2:

General preview of qrcode monster model:

brightness model set 1:

brightness model set 2:

General preview of the brightness model:

  • Final effect display

anime character style

  

It can be found that the pictures drawn in the two-dimensional style still have a little bit of two-dimensional code style.

realistic style

  

   

It can be found that the pictures obtained in a realistic style are more realistic, and the signs of QR codes have become much less.

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 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/132503788