Unverified Commit 7f60520d authored by Alex Brooks's avatar Alex Brooks Committed by GitHub
Browse files

[Misc] Update Default Image Mapper Error Log (#8977)


Signed-off-by: default avatarAlex-Brooks <Alex.Brooks@ibm.com>
Co-authored-by: default avatarRoger Wang <136131678+ywang96@users.noreply.github.com>
parent 563649aa
...@@ -56,7 +56,12 @@ class ImagePlugin(MultiModalPlugin): ...@@ -56,7 +56,12 @@ class ImagePlugin(MultiModalPlugin):
.preprocess(data, return_tensors="pt") \ .preprocess(data, return_tensors="pt") \
.data .data
except Exception: 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 raise
return MultiModalInputs(batch_data) return MultiModalInputs(batch_data)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment