We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef23b68 commit 9e87618Copy full SHA for 9e87618
src/transformers/image_transforms.py
@@ -274,7 +274,7 @@ def get_resize_output_image_size(
274
275
276
def resize(
277
- image,
+ image: np.ndarray,
278
size: Tuple[int, int],
279
resample: "PILImageResampling" = None,
280
reducing_gap: Optional[int] = None,
@@ -286,7 +286,7 @@ def resize(
286
Resizes `image` to `(height, width)` specified by `size` using the PIL library.
287
288
Args:
289
- image (`PIL.Image.Image` or `np.ndarray` or `torch.Tensor`):
+ image (`np.ndarray`):
290
The image to resize.
291
size (`Tuple[int, int]`):
292
The size to use for resizing the image.
0 commit comments