Skip to content

XY Flip Config

Source

Pydantic model for the XYFlip augmentation.

XYFlipConfig

Bases: BaseModel

Configuration for the XYFlip augmentation.

Attributes:

  • name (Literal['XYFlip']) –

    Name of the transformation.

  • p (float) –

    Probability of applying the transform, by default 0.5.

  • seed (int | None) –

    Seed for the random number generator, by default None.

model_dump(**kwargs)

Return the model as a dictionary.

Parameters:

  • **kwargs

    Pydantic BaseMode model_dump method keyword arguments.

Returns:

  • {str: Any}

    Dictionary representation of the model.