RandomPerspectiveΒΆ

A preprocessing layer that applies random perspective transformations.

Abstract Signature:

RandomPerspective(factor: float = 1.0, scale: float = 1.0, interpolation: str = bilinear, seed: int)

PyTorch

API: torchvision.transforms.RandomPerspective
Strategy: Direct Mapping

Keras

API: keras.layers.RandomPerspective
Strategy: Direct Mapping

TensorFlow

API: keras.layers.RandomPerspective
Strategy: Direct Mapping