"Argument interpolation should be of type InterpolationMode instead of int. "
主要是pillow包/Image 包插值模式造成的原因
- 导入
from torchvision.transforms import InterpolationMode
- 将
Image.BICUBIC
替换为InterpolationMode.BICUBIC
"Argument interpolation should be of type InterpolationMode instead of int. "
主要是pillow包/Image 包插值模式造成的原因
from torchvision.transforms import InterpolationMode
Image.BICUBIC
替换为InterpolationMode.BICUBIC