Transforms#
A transform takes an event dict and returns it, changed. A config lists transforms in order, and Compose runs them on every event.
The Panda pipeline, step by step#
Step |
Event after the step |
|---|---|
raw event |
|
|
|
|
|
|
one point per occupied cell, M ≤ N points; integer |
|
training target under the name models expect |
|
every array is a torch tensor |
|
only the listed keys, plus |
Copy appears in training recipes only; inference needs no target.
Common transforms#
Transform |
What it does |
|---|---|
|
|
|
log-scales the keys onto [-1, 1] |
|
keeps one point per occupied cell and subsamples every point-aligned key |
|
copies keys under new names |
|
converts NumPy arrays to tensors |
|
keeps |
|
geometric augmentation |
|
drop, reorder or crop points |
There are 46 registered transforms in all; Python API lists each one.
Point-aligned keys#
Transforms that drop or reorder points, such as GridSample, crops and dropout, subsample every key named in the event’s index_valid_keys list. A new per-point key must be in that list before the first of those transforms, or it no longer lines up with coord.
Write a transform#
See Add a component.