Creating Art Using Stable Diffusion QR Code

 create qr code art using stable diffusion

Building your brand is really a tough thing. For this, you
need to work on every single tiny concept to make your brand successful.  Likewise, a small but powerful idea that can help
your brand building is to create QR code
art using Stable Diffusion
.

QR codes can be useful for businesses and artists alike. Plain black-and-white squares are a bit boring, but by using AI art we can make them
more interesting for our audience.

 Businesses could
print these QR artworks as stickers or posters to drive traffic. Not only this, but even if you are an Artist then can you also sell custom QR codes for clients.

In this post, we will see the creation of colorful, scan able QR
code art using AI image generation.

Installation with workflow:

search on google for generating url to qr code generator

1. First, head to any QR code generator site by searching on Google. Now, get your link it can be your website link, social media, or anything you want to share. Make sure your link should be short. For URL shortening, you can use any link shorter. Just create one QR code image of your link.

For illustration
purposes, we have used our Twitter (X) handle page link. https://twitter.com/SD_Tutorial

qr-code generated

2. You can choose your own business website link or social media link. After generating download the basic QR code image and save it on your
computer as a PNG file.

search on hugging face

3. Now, download the required Stable Diffusion Models. We need
two Stable Diffusion models from the Hugging Face platform:

a) Go to the required link:

https://huggingface.co/lllyasviel/ControlNet-v1-1

Select the tab “files and
versions
”. 

search for Control_v1l_tile model

4. Now, press ctrl+f to search “tile” on the search bar of the browser. You get a model named “control_vl1fle_sd15_tile…” will be
available which will be around 1.4GB. Just click on the download button to download
it.

search for ioc control net

b) Now, go to this link :

https://huggingface.co/ioclab/ioc-controlnet

and select the tab “file and versions”.

 

search for ioc control net - model
search other model control net brightness

5. Click the “models
folder and again search for “Brightness
safetensors” and download it as
well.

Download these models by searching their names and save them
into your model’s folder “stable-diffusion-webui/models/controlnet/“. This sets up Stable Diffusion with the capability to
alter images.

Drag and drop QR code image for CotrolNetUnit0

Drag and drop QR code image for CotrolNetUnit1

6. After downloading the required models, just restart your Automatic1111 to take effect. Upload the generated QR code by drag and drop for ControlnetUnit0 and ControlnetUnit1 as well. 

Enable both extension before generating image

Make sure you “Enable” both extensions otherwise, it will not work.

7. Now, firstly do settings for ControlNet Unit 0, and then we will move to ControlNet Unit 1

ControlUnit0 Settings

8. Select the ControlNet
Unit0
tab in Automatic1111.

In ControlNet 0, choose:

    –  Preprocessor:  Inpaint_Global_Harmonious

    –  Model:  Control_v1p_sd15_brightness (Downloaded recently)

    –  Control
Weight:  0.35

Leave the rest as it is.

ControlNet_Unit1 Settings
set sampling methods and sample rate

9. Select the ControlNet
Unit1
tab in Automatic1111, and do these settings:

    –  Preprocessor:  Inpaint_Global_Harmonious

    –  Model:  Tile V1-45 (recently downloaded)

    –  Control Weights:  0.5

    –  Start Control
Step:  0.35

    –  End Control
Step:  0.75

Last set these:

    -Sampling Method: Euler or DPM+++ 2M Karas

    -Sampling Steps: 22

    -Enable Hires Fix 


For adding more creativity into your image you can increase the Starting Control Step and for decreasing use End Control Net option(Min value is 0 and Max value is 2). Control Weight gives you the overall code impact into your image. (Min value is 0 means no effect and Max value is 2 means strong effect)

click to generate

10. Now, just click on the Generate
button to generate this.

And these are the generated QR art.

QR Code art generated using stable Diffusion      QR Code art generated using stable Diffusion
QR Code art generated using stable Diffusion          QR Code art generated using stable Diffusion

Now, these are setting, you need to play around a little bit.
Actually you don’t get required results at the first go. So, for that do
experimenting because the sometimes you get images that don’t look good
sometimes the images are not get scanned.

Experiment with different prompts and tune the ControlNet
settings more. The goal is eye-catching images that phones can still read the
QR code from accurately.

11. Print Your QR Artwork for your business, or post it on your social media pages like Instagram, Twitter (X), LinkedIn, etc.

Once you end up with some neat stylized QR codes, you could
print them out on stickers to put on products, flyers, or around your business.
The funky images will grab people’s curiosity to encourage scanning which will definitely help in your brand-building.

Conclusion:

The combinations are endless here – have fun making AI-powered QR code artworks with instant practical application. Making your own QR code art is not that challenging when using stable diffusion. 

By, using Control net options and models like Safe tensors made qr code generating so simple with just a drag and drop with some minor settings that normal people can also have that in no time.