AmericanPresidentJimmyCarter / yasd-discord-bot

Yet Another Stable Diffusion Discord Bot
MIT License
112 stars 15 forks source link

Resolutions producing varying results #7

Closed AceBeaker2 closed 2 years ago

AceBeaker2 commented 2 years ago

Some resolutions do not work, here is a list Square resolutions 512x512 and above = working Square resolutions less than 512x512 = noisy, fuzzy, weirdly noisy Any vertical or landscape resolutions = stretched into a square Vertical or landscape resolutions less then 512x512 = noisy, fuzzy, weirdly noisy AND stretched into a square

Assuming all resolutions are multiples of 64 resolution edited in dalle/dalle-flow/executors/stable/config.yml

AmericanPresidentJimmyCarter commented 2 years ago

I will look into this, probably forgetting to set a variable somewhere.

AmericanPresidentJimmyCarter commented 2 years ago

So the reason that non-square resolutions do not work is because of how dalle-jina's DocArray serializes the image pictures. I will have to write my own code for creating the output images to allow users to make non-square resolution images. Originally the code had the ability to specify what resolution you wanted, but I didn't have time to fix the issue with DocArray. It will be coming in a future update.

AmericanPresidentJimmyCarter commented 2 years ago

Ok so I talked to a lot of people and all samplers have this issue. The model was trained with 512x512 and fares best with height or width >= 384.

Feel free to try my PR here: https://github.com/AmericanPresidentJimmyCarter/yasd-discord-bot/pull/18