Step 1 — Generate a QR Code
Create a QR code using one of the free websites.
Generate and download your QR code with the following settings:
- Error Correction Level: H
- Image Size: 250x250
Step 2 — Set-up Automatic1111 and ControlNet
Download Tile and Brightness ControlNet models to your “stable-diffusion-webui\extensions\sd-webui-controlnet\models” folder:
- Tile: control_v11f1e_sd15_tile.pth
- Brightness: control_v1p_sd15_brightness.safetensors
Step 3 — Generate QR Code Arts
Let’s open Automatic1111 web UI and use “txt2img” mode.
Sample prompt
(best quality, masterpiece), cheese burger
Negative prompt: worst quality, low quality
We are going to use two ControlNet Units (0 and 1).
ControlNet Unit 0:
Upload your QR code to ControlNet Unit 0 tab with the following setting:
- Check: “Enable”
- Preprocessor : “inpaint_global_harmonious”
- Model: “control_v1p_sd15_brightness”
- Control Weight: 0.3
- Starting Control Step: 0 (default)
- Ending Control Step: 1 (default)
- Control Mode: Balanced (default)
ControlNet Unit 1:
Upload your QR code to ControlNet Unit 1tab with the following setting:
- Check: “Enable”
- Preprocessor : “inpaint_global_harmonious”
- Model: “control_v11f1e_sd15_tile”
- Control Weight: 0.55
- Starting Control Step: 0.35
- Ending Control Step: 0.7
- Control Mode: Balanced (default)
Generate several batches and test it!
Related Articles: