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