d3rlpy.augmentation.image.RandomRotation

class d3rlpy.augmentation.image.RandomRotation(degree=5.0)[source]

Random rotation augmentation.

References

Parameters:degree (float) – range of degrees to rotate image.
degree

range of degrees to rotate image.

Type:float

Methods

get_params()[source]

Returns augmentation parameters.

Returns:augmentation parameters.
Return type:dict
get_type()[source]

Returns augmentation type.

Returns:random_rotation.
Return type:str
transform(x)[source]

Returns rotated image.

Parameters:x (torch.Tensor) – observation tensor.
Returns:processed observation tensor.
Return type:torch.Tensor