ToImage¶
- class torchvision.transforms.v2.ToImage[source]¶
Convert a tensor, ndarray, or PIL Image to
Image
; this does not scale values.This transform does not support torchscript.
Examples using
ToImage
:Transforms v2: End-to-end object detection/segmentation example
Transforms v2: End-to-end object detection/segmentation example