I'm thrilled to introduce the Stable Diffusion XL QR Code Art Generator, a creative tool that leverages cutting-edge Stable Diffusion techniques like SDXL and FreeU. This generator is built on the SDXL QR Pattern Controlnet model by Nacholmo, but it's versatile and compatible with SD 1.5 models and the QR_Monster ControlNet as well. However, I've achieved the best results with SDXL.
Here's how it works:
Enter your QR code text in the QR_Text field.
If the QR code isn't centered, you can align it using X and Y offsets.
If, for example, you want to create a business card, you can adjust the canvas resolution with width and height and position the code using X and Y offsets.
Next, enter your prompt or choose a pre-saved style from the Styler, or combine your prompt with a style.
Now, you're ready to generate your QR code. The workflow includes an automatic QR code validation feature. Optionally, you can set it to save only scannable QR codes.
If your code isn't scannable, try slightly increasing the control net weight. Be cautious, though, and find the right balance, as a too high control net weight can significantly limit the AI's creativity.
The workflow requires various custom nodes, which you can easily install via the Comfyui manager.
You can download the Styler here.
Find the Controlnet model here.
Enjoy the process of creating your unique QR codes, and don't hesitate to reach out if you have any questions. 🎉
Description
FreeU
Support SDXL and SD 1.5
FAQ
Comments (12)
there is an issue with mask composite:
"Error occurred when executing MaskComposite: The size of tensor a (1024) must match the size of tensor b (1014) at non-singleton dimension 2 File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "C:\AI\ComfyUI_windows_portable\ComfyUI\comfy_extras\nodes_mask.py", line 249, in combine output[:, top:bottom, left:right] = destination_portion + source_portion"
not sure how to fix it
The FUNCTION_MASK from QR Code (Split) is too small. I added an upscale image step right after the "Convert Mask to Image" node in the leftmost column of "QR-Code Preprocessing". Use the width/height from the nodes in the "QR-Code Settings" column.
@Renounce3557Â The Node #90 Upscale Image is actually the node responsible for upscaling the Function_Mask, and this is controlled by the Width / Height Nodes. Or am I mistaken in my thinking?
hi,i have the same problem,could you tell me how to fix it?
beautiful workflow: excellent on its own - I'm trying to modify it however! (mind you i'm not a pro myself) - any tips if I wanted to add a primary or secondary Image Mask which the QR function is built (layered) into ?
What do you want to do with the additional masks?
like if i wanted to add a controlnet mask for an openpose or a high strengthed-qrMonster of text or image etc. I suppose i used the term "layered" in because I'm not accustomed to generating the QR live like you have it built and with all the composites etc (this workflow being far more effective/cohesive compared to whats out there) - but yah example could be expanding the padding area around the QR but the padded are is controlnet influenced based on the additional mask.
I'm able to do achieve that relatively well with auto1111 but its a pain and clearly more efficient with comfy and really what pushed me to make the jump to comfy.
I used manager to install missing nodes but
I get following error still,
[
When loading the graph, the following node types were not found:
Image Input Switch
ttN text
comfy-qr-read
ttN textDebug
MileHighStyler
comfy-qr-validate
comfy-qr-by-module-split
Logic Boolean
ttN pipeLoader
Nodes that have failed to load will show as red on the graph.
]
what should I do? sorry, I am a beginner..
assuming you have everything in the appropriate folders this solve should probably fix it (did for me) https://github.com/coreyryanhanson/ComfyQR-scanning-nodes/issues/1#issuecomment-1775983288 /in the review of this page i posted my work around for the PipeLoader-Mismatch error.
here u get the milehighstyler: https://civitai.com/models/119246/sdxl-mile-high-prompt-styler-now-with-25-individual-stylers-each-with-1000s-of-styles-and-you-can-add-custom-styles-infinitely and tiny terra nodes: https://github.com/TinyTerra/ComfyUI_tinyterraNodes
im not able to scan my generated qr, also it says node mismatch on the UI, is it because of that?
I updated the Workflow













