This repository provides a comprehensive guide on how to create QR codes Art using Stable Diffusion.
- Download this repository and open
AI-QRCode.ipynb
with Google Colab. - Open
Resources
and set the Hardware accelerator toGPU
.
Follow the steps in the code to open the Public URL
.
Navigate to Settings
and ControlNet
. Make sure Multi ControlNet: Max models amount
is set to more than 2 (default is 3), then click Apply settings
and Reload UI
.
Follow the steps below to generate your QR code Art:
- Open
ControlNet
->ControlNet Unit 0
and upload your QRCode. - Adjust your settings as follows:
- Open
ControlNet
->ControlNet Unit 1
and upload your QRCode, then adjust your settings as follows: - Prompt your QR Code image to be generated.
For instance:
- Prompt: masterpiece, best quality, Japanese house, tree, and city background
- Nagative Prompt: UnrealisticDream, FastNegativeEmbedding
The style of the generated image heavily depends on the Stable Diffusion checkpoint. You can change the checkpoint to generate a QR code image with a different style.
You can add more checkpoints by modifying these lines of code:
To download checkpoints, run curl -Lo filename.safetensors downloadLink
and move the downloaded file into the /content/microsoftexcel/models/Stable-diffusion
folder.
This repo is inspired by sd-misc-colab and Rowan Cheung's Twitter post.