torchvision.transforms.RandomErasing 报错 ‘Image‘ object has no attribute ‘shape‘
参考:https://discuss.pytorch.org/t/attributeerror-image-object-has-no-attribute-shape/149175原因:transforms.RandomErasing处理tensor,而非image。解决办法:将transforms.RandomErasing操作置于**transforms.ToTensor()**之后 "train": transforms.Compose([transfor