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

GKernelSE2 returns nan kernel when using rbf as sampling mode #2

Open
dgcnz opened this issue May 21, 2024 · 0 comments
Open

GKernelSE2 returns nan kernel when using rbf as sampling mode #2

dgcnz opened this issue May 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dgcnz
Copy link
Owner

dgcnz commented May 21, 2024

Reproduction

For parameters: grid_H=None, group_kernel_size=4, this will return a group_sampling_width=0 which will in turn make rbf return a tensor of nan's.

if grid_H is None:
grid_H = so2.uniform_grid(group_kernel_size)
grid_Rn = gF.create_grid_R2(kernel_size)
if not group_sampling_width:
group_sampling_width = 0.8 * so2.nearest_neighbour_distance(grid_H).mean()

Temporary fix

Use group_sampling_mode='nearest'.

@dgcnz dgcnz added the bug Something isn't working label May 21, 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

1 participant