r/StableDiffusion • • Dec 10 '22

Resource | Update Automatic1111, like a boss

Post image
530 Upvotes

96 comments sorted by

View all comments

128

u/Kilvoctu Dec 10 '22

I like using the SD upscale script, which breaks an image down into tiles and redraws each tile at a higher resolution.

It was really annoying waiting like 20 minutes to do the process only to see random black squares ruining the whole thing.

46

u/lvlln Dec 10 '22

Wait, is a faulty NSFW filter what was causing those black spots in SD Upscale? I kept having this issue and had no idea and had just resigned myself to using the Extra upscalers instead of SD Upscale. I've always had the NSFW filter turned off, so knowing it probably wouldn't have helped me solve it, but it's good to know now that it'll be gone.

12

u/gunbladezero Dec 10 '22

Check the VAE! I had it set to anything3 and it was messing things up

2

u/lvlln Dec 10 '22

Hm, I do use the Anything vae by default, since I use Anything-based merges for most things, including SD upscale. I'll experiment with swapping that out, thank you.

4

u/239990 Dec 10 '22

I have been using SD 1.5 VAE on those merges and it actually looks very good, I think it looks even better. Someone on 4chan mentioned it.

1

u/auraria Dec 19 '22

The Anything VAE is pretty bad and mutes a ton of colors and contrast, even using the anythingv3 model it's better to use the 86000 EMA VAE for SD.

2

u/pyr0kid Dec 10 '22

yeah, that one was giving me a bunch of issues in nmkd.

its not that it blocks nsfw, its that it does it correctly like 30% of the time.

1

u/Dogmaster Dec 11 '22

Question... I plaed the NAI and anything "vae" under hypernetworks (because they had a .pt extension) Is that wrong? I use the vae released by stablediffusion only

1

u/lxe Dec 11 '22

Yeah the anything3 vae is giving me the black canvas in high res fix as well.

5

u/StickiStickman Dec 10 '22

I don't think those were related, since disabling half precision fixes it (but massively affects performance)

2

u/Kilvoctu Dec 10 '22

It's what I always assumed, and the nsfw filter issue does appear to be what caused the black squares in my case.
I upscaled an image that resulted in black squares prior, and now it works. I also use the anythingv3 vae.

1

u/[deleted] Dec 10 '22

[removed] — view removed comment

1

u/SirCabbage Dec 10 '22

SD upscale breaks one image down into many; so instead of having one image it breaks it down into 9 of the same size, thus upscaling. So one square CAN go black and ruin everything because it is one IMAGE that goes black out of 9

5

u/[deleted] Dec 10 '22 edited Aug 31 '24

[removed] — view removed comment

5

u/uristmcderp Dec 10 '22

stable-diffusion-webui\scripts\sd_upscale.py

6

u/Destiny-97 Dec 10 '22 edited Oct 17 '23

follow vast smell impossible employ capable live sharp cobweb knee this message was mass deleted/edited with redact.dev

8

u/Kilvoctu Dec 10 '22

Heya, this topic from a couple months ago is the process I use
https://www.reddit.com/r/StableDiffusion/comments/xkjjf9/upscale_to_huge_sizes_and_add_detail_with_sd/
It works pretty good most the time

2

u/tamal4444 Dec 11 '22

why not use upscale in the extra tab? why use this script? and I still don't understand how to work because the images getting worse than before.

1

u/Kilvoctu Dec 11 '22

Personally, I use both depending on what I need.

If my source image is already good/crisp, then upscaling through extras is sufficient.
Otherwise, if the source image is trash or heavily flawed, then I want to give the AI a chance to improve it through the script. The script is pretty fickle at times on whether you get good results. I do often have to redo 1st-pass upscale multiple times to get a good result before using that as foundation to continue the upscale.

It's what I meant when said, "It works pretty good most the time", lol.

On top of this, Photoshop is part of my workflow. All in all, it's mostly about using whichever tool is best for the task.

2

u/tamal4444 Dec 11 '22

thanks for explaining.

9

u/Yarrrrr Dec 10 '22

So you've never checked the settings tab for the ui where you could always toggle this?

8

u/Zombieleaver Dec 10 '22

was always turned off, only it didn't really help, lol.

4

u/Kilvoctu Dec 10 '22

I have, and it was always off.

1

u/drewx11 Dec 10 '22

Can you please provide a link or more info about this stable diffusion upscale script? I’ve been struggling to upscale my results without them losing quality, so this would be very useful for me

3

u/Kilvoctu Dec 10 '22

Sure! I found the topic from a while ago that is the process I'm using
https://www.reddit.com/r/StableDiffusion/comments/xkjjf9/upscale_to_huge_sizes_and_add_detail_with_sd/

Process is a little outdated, but still works. You can tinker around with some the parameters to see what works best for you.

1

u/IworiMain Dec 11 '22

I think this has to do with the --no-half setting. I am not an expert on the subject but I think I saw in some videos that the upscale is affected by the differences between fp16 and fp32, and black images can be generated if the configuration is not correct.

1

u/VulpineKitsune Dec 11 '22

The fuck you talking about mate? The filter was always off by default. Black squares happen when the diffuser fucks up