Replies: 4 comments 4 replies
-
Do we mean displayed as a decimal? or the simplest ratio like you have up there? |
Beta Was this translation helpful? Give feedback.
-
This would be nice... a bit like what midjourney use to quickly set image size based on input like ar:1:2 Also this could be implemented with the fact that SD lose coherency past ~290k pixels and optionally propose resolutions that are more coherent. There is a discussion about that here: I did test the hypothesis and it is true... keeping the number of pixels under 290k will produce coherent output almost 100% of the time. Sticking with resolutions marked in green tend to produce the best outputs. You then feedback the produced output to img2img to scale it up and keep the coherency at a higher resolution while preserving the aspect ratio. My guess is that the real coherency limit is 262144 pixels... matching the training pixel resolution of 512x512 images. Staying close to this maximum limit will produce mostly coherent images... but going well beyond will tend to create multiple arms, bad faces, duplicate subjects, loss of focus, etc, etc. Those are an example of coherent resolution I calculated... they allow for slight overrun of 262144 pixels: Light green: just under the optimal dark green pixels count Perhaps this is outside this PR request... but worth keeping in mind when generating images none the less. |
Beta Was this translation helpful? Give feedback.
-
It would be fairly easy to add UI wise, when you drag the width/height sliders, to show in real time somewhere what aspect ratio it is. You could also add a few common aspect ratio lock buttons, and when you click them, the sliders moves in steps according to the locked aspect ratio. |
Beta Was this translation helpful? Give feedback.
-
i agree... i'd also like a button to lock aspect ratio to the present one, or lock aspect ratio to the closest possible to the input image for img2img. |
Beta Was this translation helpful? Give feedback.
-
A small text telling the current aspect ratio would help a lot, I usually work with 16:9 and 21:9
Beta Was this translation helpful? Give feedback.
All reactions