先导torchvision包from PIL import Imagefrom torchvision.transforms import ToTensor,ToPILImage定义转换操作img_to_tensor = ToTensor() # img ...
確定! 回上一頁