Skip to content
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 deal with images that height is not equal to weight? #106

Open
Mystere271 opened this issue Oct 14, 2022 · 2 comments
Open

How can I deal with images that height is not equal to weight? #106

Mystere271 opened this issue Oct 14, 2022 · 2 comments

Comments

@Mystere271
Copy link

Hi Lucidrains,

I noticed that height and width of image must be {img_size}, but what if my image's weight and height are different? Does it mean that I have to clip the images? Or is there any more elegant way to handle it?

Thanks!

@Mut1nyJD
Copy link

No simply change the parameters to a tuple and change the asserts to check on a tuple. Rest will continue working, the UNet does not care if it is square or has a different aspect ratio. At least it worked for me

@zuiwomeirenxi
Copy link

No simply change the parameters to a tuple and change the asserts to check on a tuple. Rest will continue working, the UNet does not care if it is square or has a different aspect ratio. At least it worked for me

hi cloud you please tell me how about set output size of generative picture?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants