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
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