Skip to content

Commit 0b057e6

Browse files
committed
fix import issue
1 parent 26fbd69 commit 0b057e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/transformers/image_utils.py

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272
PILImageResampling.BICUBIC: InterpolationMode.BICUBIC,
7373
PILImageResampling.LANCZOS: InterpolationMode.LANCZOS,
7474
}
75+
else:
76+
pil_torch_interpolation_mapping = {}
7577

7678

7779
if TYPE_CHECKING:

0 commit comments

Comments
 (0)