From 7f60520deb05d2e097b408e3310f1d383fbf1de6 Mon Sep 17 00:00:00 2001 From: Alex Brooks Date: Wed, 2 Oct 2024 05:44:38 -0600 Subject: [PATCH] [Misc] Update Default Image Mapper Error Log (#8977) Signed-off-by: Alex-Brooks Co-authored-by: Roger Wang <136131678+ywang96@users.noreply.github.com> --- vllm/multimodal/image.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vllm/multimodal/image.py b/vllm/multimodal/image.py index d3a230e40477..7ca64152e481 100644 --- a/vllm/multimodal/image.py +++ b/vllm/multimodal/image.py @@ -56,7 +56,12 @@ class ImagePlugin(MultiModalPlugin): .preprocess(data, return_tensors="pt") \ .data except Exception: - logger.error("Failed to process image (%s)", data) + logger.error( + "Failed to process image (%s) with the default mapper. " + "This is most likely an edge-case with this model's image " + "processor in transformers (type: %s), and not vLLM.", + data, + type(image_processor).__name__) raise return MultiModalInputs(batch_data)