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

Whether computation of torch arrays is supported? #78

Open
BaseBlank opened this issue Sep 27, 2023 · 0 comments
Open

Whether computation of torch arrays is supported? #78

BaseBlank opened this issue Sep 27, 2023 · 0 comments

Comments

@BaseBlank
Copy link

I'm calculating the Chamfer Distance for the point cloud, but I'm getting an error when using a torch array instead of a numpy array.
The calculation of torch array is not supported. When Chamfer Distance is used as the loss function of the model, the calculation is forcibly converted to numpy. The calculated loss function does not have gradient information, so the model cannot be updated.
Code error:
TypeError: k_nearest_neighbors(): incompatible function arguments. The following argument types are supported:
1. (query_points: numpy.ndarray, dataset_points: numpy.ndarray, k: int, squared_distances: bool = False, max_points_per_leaf: int = 10, num_threads: int = -1) -> Tuple[object, object]

Invoked with:

Many thanks!

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