from PIL import Image
import torchvision as tv
import torch as t
transforms = tv.transforms.Compose([ tv.transforms.Resize(550), # tv.transforms.CenterCrop(opt.image_size), tv.transforms.ToTensor(), # tv.transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5)) ])
img=Image.open("./picture_presolve/picture4/picture/xxx.png")
img=transforms(img)