Skip to content

XY Random Rotate90 Config

Source

Pydantic model for the XYRandomRotate90 transform.

XYRandomRotate90Config

Bases: TransformConfig

Pydantic model used to represent the XY random 90 degree rotation transformation.

Attributes:

Name Type Description
name Literal['XYRandomRotate90']

Name of the transformation.

p float

Probability of applying the transform, by default 0.5.

seed Optional[int]

Seed for the random number generator, by default None.

model_dump(**kwargs)

Return the model as a dictionary.

Parameters:

Name Type Description Default
**kwargs

Pydantic BaseMode model_dump method keyword arguments.

{}

Returns:

Type Description
{str: Any}

Dictionary representation of the model.