class documentation

class AugmentationsCollector:

Constructor: AugmentationsCollector(augmentations, aug_config)

View In Hierarchy

Collect augmentation names that were applied to a sample.

Static Method collect_applied_transform_paths Undocumented
Static Method flatten_config_augmentation_paths Undocumented
Static Method get_tracked_transforms Undocumented
Static Method get_wrapped_transform Undocumented
Static Method load_augmentation_paths Undocumented
Static Method reset_transform_params Undocumented
Method __init__ Undocumented
Method get_applied_augmentations Undocumented
Instance Variable augmentations Augmentation engine being instrumented.
Instance Variable configured_paths Set of configured augmentation paths, including nested transform paths.
Static Method _is_probabilistic_resize_transform Undocumented
Method _instrument Undocumented
Instance Variable _applied_augmentations Undocumented
Instance Variable _original_apply Undocumented
Instance Variable _tracked_transforms Undocumented
@staticmethod
def collect_applied_transform_paths(transform: Any, parent_path: tuple[str, ...] = ()) -> list[str]:

Undocumented

@staticmethod
def flatten_config_augmentation_paths(config: list[dict], parent_path: tuple[str, ...] = ()) -> list[str]:

Undocumented

@staticmethod
def get_tracked_transforms(augmentations: AugmentationsLike) -> list[Any]:

Undocumented

@staticmethod
def get_wrapped_transform(fn: Callable[..., object]) -> Any:

Undocumented

@staticmethod
def load_augmentation_paths(aug_config: Path | list[dict[str, Any]]) -> list[str]:

Undocumented

@staticmethod
def reset_transform_params(transform: Any):

Undocumented

def __init__(self, augmentations: object, aug_config: Path | list[dict[str, Any]]):

Undocumented

def get_applied_augmentations(self) -> list[str]:

Undocumented

augmentations =

Augmentation engine being instrumented.

configured_paths =

Set of configured augmentation paths, including nested transform paths.

@staticmethod
def _is_probabilistic_resize_transform(item: dict[str, Any]) -> bool:

Undocumented

def _instrument(self):

Undocumented

_applied_augmentations: list[str] =

Undocumented

_original_apply =

Undocumented

_tracked_transforms =

Undocumented