Shortcuts

RGB

class torchvision.transforms.v2.RGB[source]

Convert images or videos to RGB (if they are already not RGB).

If the input is a torch.Tensor, it is expected to have […, 1 or 3, H, W] shape, where … means an arbitrary number of leading dimensions

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources