Sign In

Ultimate QR Workflow Compilation

Ultimate QR Workflow Compilation

Introduction and Requirements

Recommended Checkpoints for QR Code Generation

ControlNet Models

Style Recommendations - LoRA Models

QR Code Guidelines

  • As a rule of thumb, the bigger the white margins around the QR, the most readable the QR code will be.

  • If in your QR code generator an option to set "Error Correction Level" exists, set it as high as possible.

  • If you like an image but it doesn't scan, you can either:

    • Keep a fixed seed and lower the Starting Control Step

    • Keep a fixed seed and introduce small seed variations through the seed "Extra" checkbox

  • Depending on the workflow you are using, the target resolution massively influences the ease of scan of you QR code. The most flexible resolution is 768x768px. Workflows using the Controlnet QR Pattern (QR Codes) v1.0 require 920x920px. So be mindful of finding the right resolution for your workflow.

  • Using a PNG transparent version of the QR without logo (in some cases) seems to help SD to fill all parts of the image with art.

URL Guidelines

  • URL Length

    • The length of the URL itself seem to affect the degree of success of the generation. The shorter the URL the higher the degree of success.

  • URL Shorteners

  • Make sure to login into the URL shortening you'd like to use, as otherwise your shortened URL will most likely be killed after a set amount of time and your QR will stop working too.

QR Code Generators

Negative Prompt Bonus

  • Include this in the negative prompt to reduce roundedness in the QR code, which would make it unreadable: (round, circle:1.2)

QR With Logos

  • When working with QR with logos, you might want to use an img2img upload mask. In that case, make sure to use an inpaint version of the preferred model. As it yields far better results.

Workflow № 1 control_tile_v11f1e_sd15_tile

→ MORE SAMPLES ←

ControlNet

  • Play with ranges depending on checkpoint/image you are generating.

  • Resize Mode: Crop and Resize

  • ControlNet Unit 0:

    • Preprocessor: tile resample

    • Model: control vilfle_sd15_tile

    • Starting Step:

      • Best results are achieved when starting control step is between 0.23 and 0.33

      • If the codes can't be scanned, lower the starting control step 🔗

      • If the generations look to much like a QR code, increase the starting control step.

    • Starting Control Step:

      • Recommended: 0.1

    • Ending Control Step:

      • Recommended: 0.45

    • Control Weight:

      • Recommended: 1

    • Control Mode: Balanced

Workflow № 2 control_v1p_sd15_brightness

  • Models for Controlnet:

    • control_vilfle_sd15_tile [e3b0c442]

    • control_v1p_sd15_brightness [5f6aabed]

  • AUTOMATIC1111 Tab: txt2img

  • Recommended Checkpoint: Deliberate v2

  • Clip skip: 2

  • Image Resolution (Start Resolution and Output Target Resolution) : 768x768px or512x512px

  • Resize Mode: ?

  • Sampler : DPM++ 2M Karras

  • Sampling Steps : 15

  • Hires. Fix:

    • Hires. Fix Recommended: No

  • CFG Scale:7

ControlNet

  • Play with ranges depending on checkpoint/image you are generating.

  • Resize Mode: Crop and Resize

  • ControlNet Unit 0:

    • Preprocessor: none

    • Model: control vilfle_sd15_tile

    • Control Weight

      • Recommended: 0.5

    • Starting Step:

      • Recommended:0.35

    • Ending Control Step

      • Recommended: 0.60

    • Control Mode: Balanced

  • ControlNet Unit 1:

    • Preprocessor: none

    • Model: control_v1p_sd15_brightness [5f6aabed]

    • Control Weight:

      • Recommended: 0.35

      • Recommended Testing Range:

    • Starting Step

      • Recommended: 0

      • Recommended Testing Range:

    • Ending Control Step

      • Recommended: 1

      • Recommended Testing Range:

    • Control Mode: Balanced

  • ControlNet Unit 2:

    • Preprocessor: none

    • Model: control_v11f1p_sd15_depth [cfd03158]

    • Weight:

      • Recommended: 1

    • Starting Step

      • Recommended: 0

    • Ending Control Step

      • Recommended: 0.2

    • Control Mode: Balanced

Workflow № 3 control_tile_v11f1e_sd15_tile

  • AUTOMATIC1111 Tab:img2img

  • Prompt: https://pastebin.com/jwbuuf5X

  • QR Code model for Controlnet: ioclab/ioc-controlnet (brightness model)

  • AUTOMATIC1111 Tab:img2img

  • Recommended Checkpoint: revAnimated

  • Clip skip: 2

  • Tested Image Resolutions (Start Resolution and Output Target Resolution): 512x512px768x768px or 1024x1024px

  • Resize Mode: Just Resize

  • Sampler: DPM++ 2M Karras

  • Sampling Steps: 15

  • Hires. Fix:

    • Hires. Fix Recommended: Only at 512px and below

  • CFG Scale: 7

  • Denoise Strength:0.75

ControlNet

  • Resize Mode: Crop and Resize

  • Play with ranges depending on checkpoint/image you are generating.

  • ControlNet Unit 0:

    • Preprocessor: none

    • Model: control_tile_v11f1e_sd15_tile

    • Control Weight: 1

    • Starting Control Step

      • Recommended:0.1

      • Recommended Testing Range:

    • Ending Control Step

      • Recommended:0.45

      • Recommended Testing Range:

    • Control Mode: Balanced

Workflow № 4 monster-labs/control_v1p_sd15_qrcode_monster

Fast Food QR Codes Concept Art→ MORE SAMPLES ←

ControlNet:

  • Play with ranges depending on checkpoint/image you are generating.

  • Resize Mode: Crop and Resize

  • ControlNet Unit 0:

    • Preprocessor: invert (from white bg & black line)

    • Model: control_v1p_sa15_qrcode_monster

    • Control Weight:

      • Recommended: 1.25

      • Recommended Testing Range: 1-2

    • Starting Control Step:

      • Recommended: 0

      • Recommended Testing Range: 0-0.2

    • Ending Control Step:

      • Recommended: 0.75

      • Recommended Testing Range: 0.70 - 0.9

    • Control Mode: Balanced

Workflow № 5 control_v1p_sd15_brightness

First off - We need a QR Code - I highly recommend this website, as it allows you to change the "fault tolerance" to 30%. This is going to allow us further diffusing all while still having a code that scans. Keep in mind, the shorter the URL, the less complex the pattern will be, making diffusing easier.

Next we will be focusing on the txt2img tab with the "Rev\_Animated" - then - adding in your prompts.

Once our prompt is set, follow the settings below.

Lastly, we move onto ControlNet. We will be uploading the picture of our QR Code into ControlNet unit 0 & ControlNet unit 1. The settings are as follows.

These settings should get most prompts a working QR Code. However, if you find your specific image is not scanning you will need to adjust the following settings until it properly scans.

1. Control weight on both ControlNet units.

2. Starting control step on both ControlNet units

3. Ending control step on both ControlNet units

These will allow you to fine tune your image to get the desired result + a working QR Code.


I genuinely hope that this guide has offered a comprehensible and enlightening glimpse into QR Code Workflows. If there are any queries you'd like to raise, or if you have any additional tips that could enrich this guide even further, I encourage you to post them in the comments. Your contributions are valuable and can help in refining and expanding this guide, as well as benefiting others who discover it. I appreciate your engagement and support — thank you!

---

7

Comments