Is your feature request related to a problem? Please describe.
Although MONAI transformations work with numpy, there are some torchvision transformations that works only with PIL images. However, there is not any transformer in MONAI to convert torch.tensor or numpy.ndarray to PIL.
Also since we have MONAI TorchVisionD which enable using torchvision transformation in MONAI workflow, this ToPIL is an obvious missing component.
Describe the solution you'd like
We need a ToPIL transformer that can simply transform torch.tensor or numpy.ndarray to PIL.
Is your feature request related to a problem? Please describe.
Although MONAI transformations work with numpy, there are some torchvision transformations that works only with PIL images. However, there is not any transformer in MONAI to convert
torch.tensorornumpy.ndarraytoPIL.Also since we have MONAI
TorchVisionDwhich enable using torchvision transformation in MONAI workflow, thisToPILis an obvious missing component.Describe the solution you'd like
We need a
ToPILtransformer that can simply transformtorch.tensorornumpy.ndarraytoPIL.