Member-only story
How to generate customized QR codes?
Two methods to generate QR codes with ControlNet
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.



The objective this time is to generate QR codes that balance both style and readability.
Preparation
- 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.
- Install ControlNet: Install the ControlNet 1.1 extension, which will be used for the next step.
- 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.
