Anyone can help me please. I'm noob in StabbleDiffuson, I run a webui version in a Google Colab session. I tried few promtpst, and when I change the picture size from stock 512x512 to 1024x1024, the SD starts to multiply the characters on the picture (2 dogs/warriors/girls instead of 1). If I change the size back to 512, mostly solves he problem, but sometimes it makes then too. Here's some sample pictures with prompts:
And for an explanation: The model is trained and optimized for 512x512
If one increases the resolution to lets say 1024x1024, it generates 4 spearate pieces, and loses coherence between those. It is not "smart", it does not "remember" it has created one character / cat / person already.
"highres fix" creates the first steps in a lower resolution (like 512x512), then upscales to the final resolution, and then iterates several steps on the already "prepared" image. This way it can prepare one, and only one object in the beginning 512x512, and later just increase the detail on that.
"bad anatomy, bad proportions, blurry, cloned face, deformed, disfigured, duplicate, extra arms, extra fingers, extra limbs, extra legs, fused fingers, gross proportions, long neck, malformed limbs, missing arms, missing legs, mutated hands, mutation, mutilated, morbid, out of frame, poorly drawn hands, poorly drawn face, too many fingers, ugly"
7 comments
If you are using Automatic1111's webui, this is what 'highres.fix' takes care of.
And for an explanation: The model is trained and optimized for 512x512
If one increases the resolution to lets say 1024x1024, it generates 4 spearate pieces, and loses coherence between those. It is not "smart", it does not "remember" it has created one character / cat / person already.
"highres fix" creates the first steps in a lower resolution (like 512x512), then upscales to the final resolution, and then iterates several steps on the already "prepared" image. This way it can prepare one, and only one object in the beginning 512x512, and later just increase the detail on that.
Also keep in mind the high res fix currently only works with 1:1 resolutions.
Not the OP, but thanks for this, I've been using another simpler UI, time to switch I guess. :)
Thanks for this, it solved my problem :)
Others have explained what's going wrong, but there's another solution if you don't want to use a 1:1 ratio.
Simply make a smaller image to begin with, then upscale after. This allows you to increase size and resolution without running into the same problem.
You can use negative prompts like "people > 1, animals > 1". There are some posts with elaborate negative prompts that are unreasonably effective.
https://www.reddit.com/r/StableDiffusion/comments/y3vgvr/fishing_trip/ uses these
"bad anatomy, bad proportions, blurry, cloned face, deformed, disfigured, duplicate, extra arms, extra fingers, extra limbs, extra legs, fused fingers, gross proportions, long neck, malformed limbs, missing arms, missing legs, mutated hands, mutation, mutilated, morbid, out of frame, poorly drawn hands, poorly drawn face, too many fingers, ugly"