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

Query about Boundary Points to Grid Points Transform #24

Open
satyajitghana opened this issue May 16, 2022 · 1 comment
Open

Query about Boundary Points to Grid Points Transform #24

satyajitghana opened this issue May 16, 2022 · 1 comment

Comments

@satyajitghana
Copy link

Hi,

what does the below line of code do?

grid_coords[:, 0], grid_coords[:, 2] = boundary_points[:, 2], boundary_points[:, 0]

the X's and Z's are being swapped, but why?

@satyajitghana
Copy link
Author

i figure it out, its because of this: https://pytorch.org/docs/stable/generated/torch.nn.functional.grid_sample.html
In the case of 5D inputs, grid[n, d, h, w] specifies the x, y, z pixel locations for interpolating output[n, :, d, h, w].

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

1 participant