3 Easy Steps to create a Stable Diffusion QR Code Art I

David Min
3 min readJun 15, 2023

--

Stable Diffusion AI Art

3 Easy Steps to create a Stable Diffusion QR Code Art I

Step 1 — Generate a QR Code

Step 2 — Set-up Automatic1111 and ControlNet

Step 3 — Generate QR Code Arts

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:

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
Automatic1111 txt2img Mode

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!

Sample QR Code
Stable Diffusion AI Art

Related Articles:

--

--