Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Misc] Update Default Image Mapper Error Log #8977
[Misc] Update Default Image Mapper Error Log #8977
Changes from 1 commit
3dec1a0
42d844e
79aacfa
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now I wonder if showing
data
here is actually helpful at all.Perhaps we can also print out the class of
image_processor
here? WDYT?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think printing the class name of the
image_processor
is a good idea! IMO there is a some value in printing thedata
since it does include stuff like the image colorspace & image size in it. This helps make cases like the 1x1 pixel issue for minicpmv more obvious, but it also will give us the shape to reproduce if there are bugs in complex image preprocessing logic that are entirely dependent on shape/aspect ratio, like in llava-next etc. It also gives us the colorspace, which is useful if there's weird stuff going on due to images being the wrong colorspace / dtype etc.I updated it to include the name of the image processor class - Here is an example log for processing a 1x1 with llava next (which uses the default mapper and blows up ) as a result.
Failed to process image (<PIL.Image.Image image mode=RGB size=1x1 at 0x14FC56493E50>) with the default mapper. This is most likely an edge-case with this model's image processor in transformers (type: LlavaNextImageProcessor), and not vLLM.