Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Conversation

@desi-ivanova
Copy link
Contributor

Changes

At inference time, pad the image instead of doing an interpolation-based resize, which gives poor results (e.g. on PSNR) when the input image heigh and/or width is not exactly divisible by the downsampling factor (=2^{number of downsampling layers}).

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 2, 2022
Copy link
Contributor

@mmuckley mmuckley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for finding this!

@mmuckley
Copy link
Contributor

mmuckley commented Dec 2, 2022

@desi-ivanova could you fix the failed tests? Then I can merge.

@desi-ivanova
Copy link
Contributor Author

@mmuckley let me know if there's anything blocking the merge

@mmuckley
Copy link
Contributor

mmuckley commented Dec 8, 2022

@desi-ivanova looks good!

@mmuckley mmuckley merged commit 6c20129 into facebookresearch:main Dec 8, 2022
@desi-ivanova desi-ivanova deleted the desi/resize-fix branch April 1, 2023 08:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants