6D prediction files now working
This commit is contained in:
+6
-3
@@ -75,9 +75,12 @@ def write_pointcloud(file, pc, numCols=6):
|
||||
|
||||
|
||||
def farthest_point_sampling(pts, K):
|
||||
if isinstance(pts, Data):
|
||||
pts = pts.pos.numpy()
|
||||
if pts.shape[0] < K:
|
||||
if K > 0:
|
||||
if isinstance(pts, Data):
|
||||
pts = pts.pos.numpy()
|
||||
if pts.shape[0] < K:
|
||||
return pts
|
||||
else:
|
||||
return pts
|
||||
|
||||
def calc_distances(p0, points):
|
||||
|
||||
Reference in New Issue
Block a user