-
Notifications
You must be signed in to change notification settings - Fork 941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I change the image's size and aspect ratio? #343
Comments
Hi If you are dealing with NSImage take a look on the code Might help https://gist.github.com/The-Igor/5b41fa5ee881112de770665fc103a4d9 |
the |
@The-Igor Thank you for your awesome example. So far, it has not been possible to use the same model to generate images of different aspect ratios by varying parameters. To achieve this, one would have to use --latent-w and --latent-h to generate different models, and then use these models to generate images of various aspect ratios. Is my understanding correct? |
Correct, and this is also theoretically achievable via two options alternative options:
These will both need supporting code to achieve in this repo. |
I'm using a Swift library, but I cannot find a way to change the image's size and aspect ratio. The following code is not functioning properly:
The generated image size is fixed at 1024x1024 (XL) and 512x512, and the code does not seem to support changing the aspect ratio. Can anyone give me some suggestions?
Thanks!
The text was updated successfully, but these errors were encountered: