Bootcamp

From idea to product, one lesson at a time. To submit your story: https://tinyurl.com/bootspub1

Follow publication

Member-only story

How to generate customized QR codes?

Edmond Yip
Bootcamp
Published in
6 min readJun 11, 2023

Recently, a Reddit user made waves in the AI generation community with their stunning QR code artwork. They seamlessly embedded the QR code within images generated through Stable Diffusion, leveraging the QR code’s error correction capability to create various styles of QR codes. This quickly sparked widespread interest and discussion.

Image by nhciao from reddit

The objective this time is to generate QR codes that balance both style and readability.

Preparation

  1. QR Code: There are many decorated QR codes available, but we don’t need those. We just need to generate a simple QR code. You can online QR code generator to generate a QR code for your URL. I will create a QR Code for my Medium.
  2. Install ControlNet: Install the ControlNet 1.1 extension, which will be used for the next step.
  3. Checkpoint: For this experiment, we’ll use rev animated v1.2.2 as our checkpoint.

If you are new to ControlNet, please read this story:

Img2img setting

Img2img’s image use the QR code. The key is to set the demonising strength to 1 . It’s better to have a higher resolution, at least 768 for improved success rate.

img2img setting

ControlNet setting

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Bootcamp
Bootcamp

Published in Bootcamp

From idea to product, one lesson at a time. To submit your story: https://tinyurl.com/bootspub1

Edmond Yip
Edmond Yip

Written by Edmond Yip

🤩 Latest News and Updates of Stable Diffusion. ✍️Tutorial of installation, extension and prompts for Stable Diffusion. https://medium.com/@edmond.yip/subscribe

No responses yet

Write a response