to_pil_image
- torchvision.transforms.functional.to_pil_image(pic, mode=None)[source]
Convert a tensor or an ndarray to PIL Image. This function does not support torchscript.
See
ToPILImagefor more details.
Convert a tensor or an ndarray to PIL Image. This function does not support torchscript.
See ToPILImage for more details.
mode (PIL.Image mode) – color space and pixel depth of input data (optional).
Image converted to PIL Image.
PIL Image
Examples using to_pil_image:
Optical Flow: Predicting movement with the RAFT model