MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / FPS

Function FPS

utils/common.py:1890–1900  ·  view source on GitHub ↗
(pts, fps_pts_num)

Source from the content-addressed store, hash-verified

1888
1889
1890def FPS(pts, fps_pts_num):
1891 # input: (b, 3, n)
1892
1893 # (b, n, 3)
1894 pts_trans = rearrange(pts, 'b c n -> b n c').contiguous()
1895 # (b, fps_pts_num)
1896 sample_idx = pointops.furthestsampling(pts_trans, fps_pts_num).long()
1897 # (b, 3, fps_pts_num)
1898 sample_pts = index_points(pts, sample_idx)
1899
1900 return sample_pts
1901
1902
1903def get_knn_pts(k, pts, center_pts, return_idx=False):

Callers 1

midpoint_interpolateFunction · 0.85

Calls 1

index_pointsFunction · 0.85

Tested by

no test coverage detected