From 38ab7df0971dc9526d2b9152b03566c8639a62a1 Mon Sep 17 00:00:00 2001 From: yonigozlan Date: Tue, 17 Sep 2024 14:50:13 +0000 Subject: [PATCH] nit --- src/transformers/processing_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/processing_utils.py b/src/transformers/processing_utils.py index 55dadb832d3141..ddf40c4fe6d442 100644 --- a/src/transformers/processing_utils.py +++ b/src/transformers/processing_utils.py @@ -1012,7 +1012,7 @@ def _is_valid_images_input_for_processor(imgs): for img in imgs: if not _is_valid_images_input_for_processor(img): return False - # If not a list of tuple, we have been given a single image or batched tensor of images + # If not a list or tuple, we have been given a single image or batched tensor of images elif not (is_valid_image(imgs) or is_url(imgs)): return False return True