Skip to content

There is a line of code that is wrong. #192

@alrisgn

Description

@alrisgn

In corr.py, there is a line of code is:
delta = torch.stack(torch.meshgrid(dy, dx), axis=-1)

Shouldn't it be:
delta = torch.stack(torch.meshgrid(dx, dy, indexing="xy"), axis=-1)
?

Because the function "def bilinear_sampler(img, coords, mode='bilinear', mask=False)" looks the first place of the last dimension as x, and it looks the second place as y.

Am I wrong?

I'm confused, thanks very much for replying.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions