stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: When choosing a big resolution the objects get multiplied

Open chs11 opened this issue 3 years ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

Hi! First: THANK YOU <3

My problem: When I make the resolution bigger then lets say 700px width, it generates too many objects in ONE single image. Example: I render: "female cyborg". If 700px or lower its a nice image of a cyborg. If I render bigger like 2048px I get an image where you see 6 (!) cyborgs merged together. Also the same with landscape and all other stuff. Then its has too many objects.

Is there any solution? Thanks

Steps to reproduce the problem

Only choosing smaller resoultions.

What should have happened?

well, it should also work on bigger resolutions

Commit where the problem happens

ac085628540d0ec6a988fad93f5b8f2154209571

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

Using the webUI

Additional information, context and logs

a nice castle with a wizard high in the sky, white fantasy background, blue stars, fantasy magic, dark light night, intricate, elegant, sharp focus, illustration, highly detailed, digital painting, concept art, matte, art by WLOP and Artgerm and Greg Rutkowski and Alphonse Mucha, masterpiece

THis gives out 8-10 castles.

chs11 avatar Nov 08 '22 16:11 chs11

SD is trained on 512x512 images. Everything above that resolution is prone to errors. The workaround is to use the highresolution fix in the txt2img tab. Set your normal resolution to whatever you want and then specify a smaller resolution (best to use 512 x Something) in the highres fix options.

Chilluminati91 avatar Nov 08 '22 16:11 Chilluminati91

Agree with Chill. I've run into that issue as well, and that is the explanation i got. You MIGHT get what you're looking for however the chances of that go down rapidly as the resolution goes up, especially if you use a non-1:1 (W and H are the same) resolution.

My suggestion is to render 512x512 (or something very close to this if not 1:1), and then use the extras tab to upscale. Generally 2.5 or 3 works well for me with R-ESRGAN General WDN 4xV3. You'll need to experiment.

Have fun!

GeorgiaM-honestly avatar Nov 08 '22 16:11 GeorgiaM-honestly

It's not a bug. It's a feature. If you do not like it, you can tick [*] highres fix box and most of problems you've described will go away. Also try to read about what each option in interface is for and what are limitations of tech you are actually using.

DevilaN avatar Nov 09 '22 08:11 DevilaN

wiki highres-fix

w-e-w avatar Nov 09 '22 08:11 w-e-w

It's a common cloning effect existent in all of stable diffusion not specific to the webui

ClashSAN avatar Nov 18 '22 06:11 ClashSAN