AttributeError: module 'nearest_neighbors' has no attribute 'knn_batch'
def knn_search(support_pts, query_pts, k): """ :param support_pts: points you have, B*N1*3 :param query_pts: points you want to know the neighbour index, B*N2*3 :param k: Number of neighbours in knn search :return: neighbor_idx: neighboring points indexes, B*N2*k """ neighbor_idx = nearest_neighbors.knn_batch(support_pts, query_pts, k, omp=True) return neighbor_idx.astype(np.int32)
nearest_neighbors
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)