4.1 torchvision.transforms.ToPILImage(mode=None). ToPILImage 的作用是将pytorch的 Tensor 或 numpy.ndarray 转为PIL的Image。
確定! 回上一頁