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

Is there a way to modify output image size or crop settings? #8

Open
cmdlinebeep opened this issue Jan 21, 2022 · 2 comments
Open

Is there a way to modify output image size or crop settings? #8

cmdlinebeep opened this issue Jan 21, 2022 · 2 comments

Comments

@cmdlinebeep
Copy link

First of all, thank you so much for open sourcing this for us to play with. It's one of the neatest things I've seen with AI.

I'm wondering if there is a way to get a higher resolution output than the 1024x1024 default? I don't see any way going through the code in Colab. It seems normalized regardless of input image size.

Second, can the crop effect also be a parameterized setting? I'm guessing that's a limitation set by StyleGAN, but it would be nice if it didn't have to crop in so tightly.

Thanks.

@roxanneluo
Copy link
Contributor

Hi,
Thank you for your interest in our work!
The output resolution is determined by the underlying StyleGAN model. You’d need to train a higher-res stylegan to achieve that with our method.
Cropping to a lower-res image is always possible from a high-res output.

@bboylalu
Copy link

bboylalu commented Mar 10, 2022

A quick and dirty workaround suggestion: I make a normal version for the face, aligned with the tools.data.align_images and also a not-so-tightly-cropped version manually which gives poor results on the face, but good ones on the rest and then just combine them in Photoshop, setting the normal version on difference mode on top of the larger one, positioning/scaling/rotating it properly and then masking a blend area.

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