types
Shared type aliases, TypedDict definitions, and enums used across the package.
Classes:
-
Boxes3DβPacked 3D boxes with class and scene indices (e.g. detection ground truth, PyG batch layout).
-
Detection3DβPacked 3D detections:
Boxes3Dplus a per-box confidence score (a model'sdecodeoutput). -
FeaturesDictβFeatures of one encoder stage on a packed point cloud, as returned in the
return_intermediateslist. -
PooledFeaturesDictβFeaturesDictof a stage pooled by clustering, keeping the map into the next coarser stage. -
MessagePassingParamsβKeyword arguments a message-passing layer forwards to its
MessagePassingbase class. -
StrEnumβEnum whose members are plain strings, so they compare, print and hash like their value.
Boxes3D [source] ΒΆ
Bases: TypedDict
Packed 3D boxes with class and scene indices (e.g. detection ground truth, PyG batch layout).
Attributes:
-
boxes(Tensor) βBoxes \((N, 7)\) of \((c_x, c_y, c_z, d_x, d_y, d_z, \theta)\).
-
labels(Tensor) βPer-box class, shape \((N,)\).
-
batch(Tensor) βPer-box scene index, shape \((N,)\).
-
ignore_mask(NotRequired[Tensor]) βPer-box ignore mask, shape \((N,)\).
Detection3D [source] ΒΆ
Bases: Boxes3D
Packed 3D detections: Boxes3D plus a per-box confidence score (a model's decode output).
Attributes:
-
boxes(Tensor) βBoxes \((N, 7)\) of \((c_x, c_y, c_z, d_x, d_y, d_z, \theta)\).
-
labels(Tensor) βPer-box class, shape \((N,)\).
-
batch(Tensor) βPer-box scene index, shape \((N,)\).
-
ignore_mask(NotRequired[Tensor]) βPer-box ignore mask, shape \((N,)\).
-
scores(Tensor) βPer-box confidence score, shape \((N,)\).
-
class_probs(NotRequired[Tensor]) βPer-box class probabilities, shape \((N, C)\), emitted by detectors whose eval protocol expands every kept box across all classes (e.g. VoteNet / 3DETR).
-
velocity(NotRequired[Tensor]) βPer-box BEV velocity \((v_x, v_y)\), shape \((N, 2)\), emitted by detectors whose head regresses velocity (the nuScenes heads).
FeaturesDict [source] ΒΆ
Bases: TypedDict
Features of one encoder stage on a packed point cloud, as returned in the return_intermediates list.
Attributes:
-
x(Tensor) βStage features, shape \((N_s, C_s)\).
-
batch(Tensor) βPer-point batch index, shape \((N_s,)\).
-
pos(NotRequired[Tensor]) βPositions of the stage's points, shape \((N_s, 3)\).
-
pos_grid(NotRequired[Tensor]) βInteger grid coordinates of the stage's voxels, shape \((N_s, 3)\).
PooledFeaturesDict [source] ΒΆ
Bases: FeaturesDict
FeaturesDict of a stage pooled by clustering, keeping the map into the next coarser stage.
Attributes:
-
pooling_inverse(NotRequired[Tensor]) βIndex of each point's cluster in the next stage, shape \((N_s,)\).