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

Incorrect normalization of W and H in inference for non-square input images #12

Open
TakuyaNarihira opened this issue Oct 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@TakuyaNarihira
Copy link

TakuyaNarihira commented Oct 22, 2024

I found a bug in the GenWarp code when I tried inference on a non-square input image.

https://github.com/sony/genwarp/blob/main/genwarp/GenWarp.py#L396

        coords = torch.stack((grid[..., 0]/H, grid[..., 1]/W), dim=-1)

The normalization of H and W is flipped, and should be corrected. I’ll probably make a PR sometime soon.

@kaz-sony kaz-sony added the bug Something isn't working label Nov 28, 2024
@kaz-sony kaz-sony self-assigned this Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants