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