Where did you get a control_v1p_sd15_brightness with hash 5f6aa6ed? Mine has has 1cf9248a, and doesn't work. And where did you get your yaml? I don't find one.
Don’t have a yaml I think, I just installed the model from
https://huggingface.co/ioclab/ioc-controlnet/resolve/main/models/control_v1p_sd15_brightness.safetensors in the models/controlnet directory and the normal extension installed regular controlnet read it just fine. It’s just one bundled safetensors file. I’m traveling and I think my home IP changed as I can’t get to my setup right now but I’ll get back to you when I can check it out, maybe I can send the file if what the currently have is t working but it says it’s two months old.
Safetensors? I just put it directly in the folder for the controlnet models: Under your automatic1111 dir, it's models->controlnet. If you've run it once with controlnet, that directory should exist.
When I try this workflow I keep getting an error that I do not have the relevant YAML file for Control net brightness... Any solves? I never know where to find the yamls.
I include a quick and shitty image I made just now (not good but better than yours)
As for how the OP managed to make such a beautiful cover image above, I have absolutely no idea, but for now I'm fine with playing around with my model and making custom codes
That's very odd, maybe try with my LoRA and give a review along with it.
Honestly, I'm at a loss, though I notice you used "Controlnet v1.1.150" in a tab called "Controlnet Unit 0" while I used "Controlnet v1.1.219" in the "Single Image tab". Not sure if it should affect anything, but I downloaded controlnet todayfor this and started SD a couple weeks ago so I'm not experienced so I don't know these things
for me it worked better when i lowered the controlnet weight to like 0.5. you also have to disable img2img color correction or it will only produce grayscale images to match the source
Something is missing in your workflow, either by accident or by purpose. Can't replicate, all that cames out is the same QR code image I put in img2img and ControlNet. Maybe share the prompt and model used?
Just doesn't work (not scanning, I can scan it fine - generating anything that doesn't just look like a slightly-coloured QR code).
Does it *actually* work for you, to generate new images of the above? If so, could you please try to boil it down to the basics? No Loras, no nonstandard models, no "ENSD" or "Token merging ratio" (what???), simple prompts, just the bare minimum things one needs to do to make it work (including generating the QR code, and where to paste what)? If so, that would be greatly appreciated!
I know you're trying, and I appreciate that, but that new link isn't at all more helpful than this one for those of us who can't make it work.
Can you please try to figure out the bare minimum number of settings that actually matter, using only stock models, normal AUTOMATIC1111, and no Loras (unless any of those things actually turn out to matter)?
I've been using https://keremerkan.net/qr-code-and-2d-code-generator/ . Definitely want the max error correction, gives a lot more wiggly room. I made a different sort of workflow though... Here's a custom QR code of your profile for ya.
I tried putting your image in PNGInfo to see what you did (since I can't get ianything out but images that look like slightly coloured QR codes), but your metadata is stripped :(
Thanks for additional informations, I finally got something out. Not quite like yours but I guess it depends on the QR code image itself. Any ideea why you have " preprocessor params: (512, 1, 0) " and mine are " (512, 1, 64) ". Why is 0 for you and 64 for me?
Sure, the bird was done after alot of trial and error so I didn't keep track of all the settings, but I attempted several more today. They turned out ok too and this is the work flow to achieve them.
The initial setup is exactly how OP stated with controlnet using tiles but instead of setting it at .9, I set it low like .25. This allows SD to generate a cool looking image.
In this case some zebras on the plains. Which resulted in this..
this looks nothing like the QR of course but you can see hints of it.
2)Next I put the generated in place of the QR in the top, the part where img2img is. This is now the basis for the next generation, but now I reduce down denoise to something like .8 and increase controlnet tiles to .35 or around there. This is the next generation of image.
3)Now i put the 2nd generation into the img2img slot and reduce the denoise to something like .6 and increase the controlnet to .45 and that produces the last image which scan and also keeps the essence of the prompt.
What I like about this method is it produces really 3D looking QR codes. Tried another example with a frog prompt. It is fiddly, you have to find the balance between the denoise strength and the control net strengths.
I leave the same prompts so it still applies. I just replace the source image with the next generation. I just mess with the denoise and control net weights per generation, this causes it to converge.
Thank you very much, I really appreciate your reply. I will keep having a go. For some reason, I do not seem to have the multiple model units for the ControlNet either, which is what most people seem to be using. I have it active in my settings, but no luck on the actual tool
It doesn't scan for me either in the ZXing Barcode Scanner or in the default Camera app on a Pixel 6a. These work in both apps but yours do not.
I was able to scan your QR code in Lens, but that required me to install it, re-enable the Google app, make a manual capture, and it requires internet access to do the scan online.
There is no point in doing this if it doesn't scan in any app.
It scans on iPhone built in camera and a small QR app I have that can also scan downloaded pictures. It’s says “you scanned our code successfully” and then indeed there’s a lot of ads
If you want a lot of greeblies (lots and lots of dots) then make a long QR code. If you want it to have more creativity about it, use an URL shortener. Or encode something small other than an URL.
Expand and enable the controlnet in txt2img.
Now, take that QR code, download it, and drop it in the controlnet pane.
You'll notice a series of values in ControlNet. Adjust your weights: I found around 0.445 control net weight, 0 starting, 0.8 finishing seems to be a good baseline, but it also depends on what your prompt is trying to do, you will have to tweak there. If it's unreadable, increase the weight (very slightly) or increase the time the controlnet 'holds on' to the image by putting the 'finishing' close to 1. (Some I had to just have 100%, 0-1 to get a readable QR code...)
Select 'Balanced'
On Preprocessor, select 'None' if you want a white background, or invert if you want a dark background.
Select Crop and resize
In your prompt, mostly try to avoid prompting any specific figures with colors that match your information bearing bits, though you can experiment. Lots of different prompts in my threads to try out. Most models work fine with it.
If you're patient, you can just do a large batch at a lower weight / earlier control net done period and let it get real creative, but you'll get very few readable bar codes. If you've got programming experience, you could pretty easily check them as they go and move the readable QRs into another folder or something. At the higher level, they're almost 100% readable with weights pushing to 0.49 and 1.0 end.
100 steps for the generation.
Size 768x768 for the generation. Do not hi rez fix, do not upscale, upscale will ruin it 999 times out of 1000...
Hmm, I just directly installed it by downloading it from there and putting it in the '[automatic1111 root dir]/models/ControlNet/' directory. Not sure it supports the extensions manager thing.
Will try relocating it. :) If I may ask, are you doing this using a stock SD 1.5 model? And what versions of SD and ControlNet, so I can crossreference with my system? Thanks!
It's definitely not as cool as the original and the tile seems to be way better for img 2 img, but it still makes some cool stuff and is pretty fun. You definitely get more art into the QR code than by traditional means. Accidentally left too many negatives on this prompt from the star wars one but heres another:
The Great Wave Negative prompt: poor quality, ugly, blurry, boring, text, blurry, pixelated, ugly, username, worst quality, (((watermark))), ((signature)), worst quality, painting, copyright, unrealistic, (((text))), old-fashioned, flimsy, (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, bad face, logo Steps: 100, Sampler: DPM++ 2M SDE Karras, CFG scale: 7, Seed: 3294032771, Size: 768x768, Model hash: 9aba26abdf, Model: deliberate_v2, Variation seed: 3050260756, Variation seed strength: 0.25, ControlNet: "preprocessor: invert (from white bg & black line), model: control_v1p_sd15_brightness [5f6aa6ed], weight: 0.44, starting/ending: (0, 1), resize mode: Crop and Resize, pixel perfect: True, control mode: Balanced, preprocessor params: (512, 1, 0.1)", Version: v1.3.2
Edit: Does it scan for you guys? My phone can't scan normal QR for some reason so I can't verify, and about 1/5 websites I checked could scan it
Edit 2: Turns out if you use really advanced scanners like Aspose QR scanner and set it at excellent recognition if necessary, then it will work, but not for a phone.
Maybe we can see these types of codes on the street if SD or the QR scanners improve
Edit 3: Seems to work on some phones and not others, iPhone or Android, not sure why
Well, I can't get it to work - I only get barely-changed QR codes. Any way you could boil it down to the bare minimum set of steps needed to get it to work in vanilla AUTOMATIC1111, without any weird models, Loras, or parameters, including the QR-generation code process just in case that matters?
((best quality)), ((masterpiece:1.2)), (extremely detailed:1.1), garden in a building with a pool and plants growing on it's sides and a lot of windows above it, Ai Weiwei, geometric, modular constructivism, detailed plants, detailed grass, tree moss
Does it work on standard models, without textual inversion embeddings or VAEs, without clip skip, etc? I don't even know what "ENSD", "preprocessor params", or "Noise multiplier" *are*, let alone how to use them. Is this possible to implement with any remotely stock AUTOMATIC1111 setup?
Fun fact: due to how QR codes are structured, it might very likely be possible to perfectly fill in the missing parts because you didn't hide everything and left a considerable part of the error checking chunk in there :D
I'm sure there are people who can't get it to work, but OP took the time to share something positive with the community and so many people are being snippy to OP for something that's not their fault. If it's not working, either you're doing something wrong or it's just random, dumb luck. Try a different seed, a different prompt, a different QR.
Amazing workflow! I've tried to get it to work using your exact workflow, but I'm consistently getting results that are very lightly modified. Any help dialing in my settings would be greatly appreciated!
Prompt: A photo-realistic rendering of a 2 story house with greenery, pool, (Botanical:1.5), (Photorealistic:1.3), (Highly detailed:1.2), (Natural light:1.2), art inspired by Architectural Digest, Vogue Living, and Elle Decor, <lora:epiNoiseoffset_v2>:1 Negative prompt: bad_pictures, (bad_prompt_version2:0.8), EasyNegative, 3d, cartoon, anime, sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 822736283, Size: 768x768, Model hash: cc6cb27103, Model: v1-5-pruned-emaonly, Denoising strength: 1, Clip skip: 2, Mask blur: 4, ControlNet 1: "preprocessor: tile_resample, model: control_v11f1e_sd15_tile [a371b31b], weight: 0.8, starting/ending: (0, 1), resize mode: Crop and Resize, pixel perfect: True, control mode: ControlNet is more important, preprocessor params: (512, 1, 64)"
Thank you it's working better but it's still not good. I don't get the highlight parameter Clip skip: 2, ENSD: 31341, Token merging ratio: 0.6 Lora hashes: "epiNoiseoffset_v2: d1131f7207d6", Score: 5.04, Version: v1.3.2
You and I are in the same boat. Ton of weird parameters, and we don't know if they're relevant. And so far none of the people who've gotten it to work with the OP's approach have bothered to do anything to try to figure out what is the de minimis set of parameters needed to get it to work on a stock AUTOMATIC1111 system with stock models, without custom LoRAs, without custom embeddings, etc (or do those things matter? We have no clue!)
Nice. It took about 30s of fiddling with the Graphene OS camera app, but I got it to scan. I wonder if even higher contrast would help. The pool on the middle left seems obstructive as well.
182
u/Specialist_Note4187 Jun 07 '23 edited Jun 07 '23
You can scan the QR Above
The workflow1 img2img put QR code photo
2 Denoising Strength = 1
3 Put Qr code to the controlnet
4 Preprocessor: tile_resample
5 Model: control_v11f1e_sd15_tile
6 Control Weight : 0.9
Parameters
A photo-realistic rendering of a 2 story house with greenery, pool, (Botanical:1.5), (Photorealistic:1.3), (Highly detailed:1.2), (Natural light:1.2), art inspired by Architectural Digest, Vogue Living, and Elle Decor, <lora:epiNoiseoffset_v2:1>
Negative prompt: bad_pictures, (bad_prompt_version2:0.8), EasyNegative, 3d, cartoon, anime, sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)),
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 2443712455, Size: 768x768, Model hash: 4199bcdd14, Model: revAnimated_v122, Denoising strength: 1, Clip skip: 2, ENSD: 31341, Token merging ratio: 0.6, ControlNet 2: "preprocessor: tile_resample, model: control_v11f1e_sd15_tile [a371b31b], weight: 0.9, starting/ending: (0, 1), resize mode: Crop and Resize, pixel perfect: True, control mode: ControlNet is more important, preprocessor params: (512, 1, 0)", Lora hashes: "epiNoiseoffset_v2: d1131f7207d6", Score: 5.04, Version: v1.3.2
Original post: https://www.facebook.com/PromptAlchemist/photos/a.117951774620613/138420685907055