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 to get the same output size as the input image? #15

Open
nass2020 opened this issue Feb 5, 2023 · 1 comment
Open

How to get the same output size as the input image? #15

nass2020 opened this issue Feb 5, 2023 · 1 comment

Comments

@nass2020
Copy link

nass2020 commented Feb 5, 2023

The algorithm works very well, but how to get the same output size as the input image? All output images are (480x368)?
Thanks a lot and congratulations for this great work

@HelixNGC7293
Copy link

HelixNGC7293 commented Feb 6, 2023

I figured this out!
You can change the function resize_368_short_side(img) in VP_code\data\dataset.py, change all the 368 value inside this function to your image's actual width/height

this number of output image size needs to be a multiple of 16, otherwise it will cause a grid & input size mismatch error
You can check out my result at here: #10 (comment)

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