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

x4 upscaling #6

Closed
AndreasAakerberg opened this issue Aug 11, 2020 · 2 comments
Closed

x4 upscaling #6

AndreasAakerberg opened this issue Aug 11, 2020 · 2 comments

Comments

@AndreasAakerberg
Copy link

AndreasAakerberg commented Aug 11, 2020

I just tested your work on some real face images of arbitrary sizes, and the results look really good. However, the output images are always squared to 512x512px. Is it possible to perform true x4 upscaling without changing the proportions of the input images?

@csxmli2016
Copy link
Owner

I just tested your work on some real face images of arbitrary sizes, and the results look really good. However, the output images are always squared to 512x512px. Is it possible to perform true x4 upscaling without changing the proportions of the input images?

Hi, it seems that this work is not flexible to perform true on x4 task. Since the input face size should be consistent with the conducted dictionary, we can only generate face results with 512x512px. As for the changing of the proportion, I am trying to solve it by the following steps:
Any size input -> crop and align face -> upsample to 512x512 -> restoration -> output 512x512 face -> back to the upsampled input with scale s.
I will upload this code to a new branch in these days. Maybe this can help you to solve this problem.

@csxmli2016
Copy link
Owner

csxmli2016 commented Aug 13, 2020

I just tested your work on some real face images of arbitrary sizes, and the results look really good. However, the output images are always squared to 512x512px. Is it possible to perform true x4 upscaling without changing the proportions of the input images?

Hi, I have updated a new branch. It is more flexible to handle an entire frame with an upscale factor s. But the enhanced face is still fixed to 512*512.

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

2 participants