3 Easy Steps: Stable Diffusion QR Code using Automatic1111 and ControlNet
Step 1 — Create a QR Code
Step 2 — Set-up Automatic1111 and ControlNet
Step 3 — Generate a QR Code in Automatic1111
Step 1 — Create a QR Code
Create a QR code using one of the free websites.
We will use a QR Code design with a blank logo in the middle.
Generate and download your QR code with the following settings:
- Your Logo: Blank Logo
- Remove background behind Logo: On
- Logo size: 150%
- Your Colors: Transparent background Off
Step 2 — Set-up Automatic1111 and ControlNet
Let’s use QR Code Monster ControlNet v1 model for Stable Diffusion 1.5.
“Model Description
This model is made to generate creative QR codes that still scan. Keep in mind that not all generated codes might be readable, but you can try different parameters and prompts to get the desired results.”
Download ControlNet QR Code Monster V1model:
- ControlNet QR Code Monster V1: control_v1p_sd15_qrcode_monster.safetensors (place the .safetensors model to your “stable-diffusion-webui\extensions\sd-webui-controlnet\models” folder)
Step 3 — Generate a QR Code in Automatic1111
Let’s open Automatic1111 web UI and use “txt2img” mode.
Sample prompt
(best quality, masterpiece), cheese burger
Negative prompt: ugly, disfigured, low quality, blurry, nsfw
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: -1, Size: 768x768, Clip skip:2
Automatic1111 txt2img Mode:
Upload your QR code to ControlNet Unit 0 tab with the following setting:
ControlNet Unit 0:
- Check: “Enable”
- Preprocessor : “none” (You can use the invert pre-processor for a different results.)
- Model: “control_v1p_sd15_qrcode_monster”
- Control Weight: 1.5 (Try adjusting Control Weight accordingly.)
- Starting Control Step: 0 (default)
- Ending Control Step: 1 (default)
- Control Mode: Balanced (default)
Generate several batches and test it!
Sample Outputs
Related Articles: