update scan_points strategy
This commit is contained in:
@@ -19,6 +19,8 @@ class PtsUtil:
|
||||
|
||||
@staticmethod
|
||||
def random_downsample_point_cloud(point_cloud, num_points):
|
||||
if point_cloud.shape[0] == 0:
|
||||
return point_cloud
|
||||
idx = np.random.choice(len(point_cloud), num_points, replace=True)
|
||||
return point_cloud[idx]
|
||||
|
||||
|
Reference in New Issue
Block a user