Skip to main content

batch_operations

Operations done at batch time defined here.

Module

Global variables

  • IMAGE_TRANSFORMATIONS : Dict[str, Type[albumentations.core.transforms_interface.BasicTransform]] - Dictionary of available image transformations and their corresponding classes.

Classes

BatchTimeOperation

class BatchTimeOperation(    *, name: Optional[str] = None, output: bool = False, arg: Any, step: DataSplit,):

Class just to denote that transformation will happen at batch time.

All batch time operations must be unary operations.

Arguments

  • step: Denotes whether transformations should be performed at training, validation or test time.

Method generated by attrs for class BatchTimeOperation.

Variables

ImageTransformation

class ImageTransformation(    *,    name: Optional[str] = None,    output: bool = False,    arg: Any,    step: DataSplit,    transformations: List[Union[str, Dict[str, _JSONDict]]],):

Represents image transformations done on a single column at batch time.

Arguments

  • transformations: List of transformations to be performed in order as one transformation.

Raises

  • ValueError: If the output is set to False.

Method generated by attrs for class ImageTransformation.

Methods


def get_callable(    self,)> bitfount.transformations.batch_operations._AlbumentationsAugmentation:

Returns callable which performs the transformations.

Returns The callable to perform transformations.

Variables

  • static transformations : List[Union[str, Dict[str, Dict[str, Any]]]]