-
Notifications
You must be signed in to change notification settings - Fork 5
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
Why is the output image size of the test different from the input? #10
Comments
Yes, that's because we need to 8x downsample input images to get images In different scales to achieve scale robustness. So, It seems that codes crop the image size to multiples of 8. This trick is commonly used in the Unet shape networks. If you want to keep the input image size, you can choose to pad the input image to multiples of 8 and crop the padding of the output. You can refer following codes: `mod_pad_h, mod_pad_w = 0, 0 window_size=8
` `_, _, h, w = self.output.size() scale=4
` |
I am afraid that such a step will not work. In the previous work, the original input image has been made to perform a (scale*8) calculation, and the pad operation with a multiplier of 8 on the input image will naturally be included in the above multiplier. |
I think I solved it, thanks for the answer. I changed the rounding down in mod_crop to rounding up |
By the way, when I test with gan.pth everything works fine, but when I test with mse.pth it suggests that the weights including dcn are missing. |
Can you download the checkpoint from google drive again? It may be the problem of downloading |
If you use our original code and checkpoint, you can run AMSA-mse and AMSA-GAN successfully |
I am very sure that my download was correct, because after this problem I downloaded again accordingly |
I do not what's the problem because I can load the checkpoint. Can you use my original code and test it? using command "python mmsr/test.py -opt "options/test/test_AMSA_mse.yml""? |
And do you use pytorch=1.4 and install DNCV2? `python setup.py develop cd mmsr/models/archs/DCNv2 python setup.py build develop` |
Thank you for your contribution. I am confused why the size of the output result and the input image are different, which is not conducive to the calculation of evaluation metrics such as PI, for example. What modifications should I make if I want to output the same size, thanks!
The text was updated successfully, but these errors were encountered: