s6.nn.data.augΒΆ
Ordered augmentation helpers for image/keypoint/mask samples.
- class s6.nn.data.aug.KeypointAugmentationSample(image: ndarray, keypoint: ndarray, mask: ndarray | None = None)
Bases:
objectImage/keypoint/mask payload passed between ordered augmentation stages.
- image: ndarray
- keypoint: ndarray
- mask: ndarray | None = None
- class s6.nn.data.aug.KeypointAugmentationStage(name: str, apply: Callable[[KeypointAugmentationSample], KeypointAugmentationSample])
Bases:
objectOne named augmentation stage in a sequential augmentation pipeline.
- name: str
- apply: Callable[[KeypointAugmentationSample], KeypointAugmentationSample]
- class s6.nn.data.aug.OrderedKeypointAugmentation(stages: Sequence[KeypointAugmentationStage])
Bases:
objectApply keypoint augmentation stages in the order they are configured.
- property stage_order: Tuple[str, ...]
Configured execution order.