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

The size of image #4

Open
Komorebi-zxy opened this issue Dec 24, 2020 · 1 comment
Open

The size of image #4

Komorebi-zxy opened this issue Dec 24, 2020 · 1 comment

Comments

@Komorebi-zxy
Copy link

When testing, why are the input and output image sizes the same regardless of the scale? And why is the test input a GT image?

@Tetsujinfr
Copy link

quick hack: in test.py you need to replace

    image_width = (image.width // args.scale) * args.scale
    image_height = (image.height // args.scale) * args.scale

by

    image_width = (image.width ) * args.scale
    image_height = (image.height) * args.scale

@Komorebi-zxy , this repo is re-implementing a paper (with some tweaks), so the code is downscaling the input images and simulating the scale up from there. This way it knows the GT by design. You will find that in real world image scenarios the results are less impressive than on the test images but this is how those model works.
Hope that helps. Consider closing the issue if so.

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