Object API#

Warning

The DALI TorchVision API is an experimental feature and is subject to change.

The object-oriented API mirrors torchvision.transforms.v2: instantiate operator classes and chain them with Compose, which builds and owns the underlying DALI pipeline.

Examples

Using Compose with PIL.Image and torch.Tensor input, compared with TorchVision.

Object API examples
Reference

All operator classes currently available in the DALI TorchVision API.

Object API reference