emmi.pipeline.sample_processors.point_sampling

Classes

PointSamplingSampleProcessor

Randomly subsamples points from a pointcloud.

Module Contents

class emmi.pipeline.sample_processors.point_sampling.PointSamplingSampleProcessor(items, num_points, seed=None)

Bases: ksuit.data.SampleProcessor

Randomly subsamples points from a pointcloud.

Parameters:
  • items (set[str]) – Which pointcloud items should be subsampled (e.g., input_position, output_position, …). If multiple

  • present (items are)

  • (e.g. (the subsampling will use identical indices for all items)

  • downsample (to)

  • subsampling). (output_position and output_pressure with the same)

  • num_points (int) – Number of points to sample.

  • seed (int | None) – Random seed for deterministic sampling for evaluation. Default None (i.e., no seed). If not None, requires sample index to be present in batch.

items
num_points
seed = None