RuntimeError: stack expects each tensor to be equal size, but got [3, 318, 318] at entry 0 and [3, 284, 284] at entry 1 我是在预处理出了问题,数据增强使用了cutout,会改变图片的形状。所以把Resize和CenterCrop放到后面就好了捏