We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26fbd69 commit 0b057e6Copy full SHA for 0b057e6
src/transformers/image_utils.py
@@ -72,6 +72,8 @@
72
PILImageResampling.BICUBIC: InterpolationMode.BICUBIC,
73
PILImageResampling.LANCZOS: InterpolationMode.LANCZOS,
74
}
75
+ else:
76
+ pil_torch_interpolation_mapping = {}
77
78
79
if TYPE_CHECKING:
0 commit comments