8000 GitHub - camenduru/simple-knn
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

camenduru/simple-knn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-knn

Description: It compute the average distance to the nearest neighbors for a set of 3D points.

Install:

pip install git+https://github.com/camenduru/simple-knn

# or 
git clone https://github.com/camenduru/simple-knn && cd simple-knn
pip install .

Usage:

from simple_knn._C import distCUDA2

# shape: [N, 3]
demopc = torch.from_numpy(np.load("/path")).float().cuda().contiguous() 

# shape: [N]
mean_distances = distCUDA2(demopc)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

0