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 test a image which resolution is not (256,256)? #15

Closed
shiguangliuguo opened this issue Aug 5, 2021 · 3 comments
Closed

how to test a image which resolution is not (256,256)? #15

shiguangliuguo opened this issue Aug 5, 2021 · 3 comments

Comments

@shiguangliuguo
Copy link

hi there, thanks for your job for offerring a script "test_in_any_resolution.py"
but, in this script, a image with random size has been processed in expand2square function,
but such size cant feed into the Uformer model.

so i wonder if this network cant process the size isn't (256,256)?
if i want to denoise the image with random size, i have to resize the size of image to (256,256)?
thanks!

@KB-co
Copy link

KB-co commented Sep 1, 2021

It is an important question...

@vinthony
Copy link
Collaborator

Hi, as illustrated in test_in_any_resolution.py, the input images can be in any size, and then, we pad them to the X times of the 256 to fit our network. NOT 256x256 as input. After getting the results, we can use the mask to mask out the paddings.

@ElMalickG
Copy link

Hi, as illustrated in test_in_any_resolution.py, the input images can be in any size, and then, we pad them to the X times of the 256 to fit our network. NOT 256x256 as input. After getting the results, we can use the mask to mask out the paddings.

Hi, Congrats for the nice job you have done !
I would like to know where to find the "test_in_any_resolution.py" script. Thanks

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

4 participants