Skip to content
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

use images instead of image to match model.forward kwarg #694

Merged

Conversation

winglian
Copy link
Contributor

@winglian winglian commented Oct 28, 2023

the model's forward method expects images as a keyword arg. This is getting set as image currently and gets removed by HF's RemoveColumnsCollator since image isn't a valid kwarg to pass to the model.forward(...)

RemoveColumnsCollator wraps the DataCollatorForSupervisedDataset, so even though DataCollatorForSupervisedDataset outputs an images feature, image gets stripped before it ever makes it to the collator`

@haotian-liu haotian-liu merged commit d2c75d6 into haotian-liu:main Nov 5, 2023
choics2623 pushed a commit to choics2623/LLaVA that referenced this pull request Dec 16, 2023
…es-name-fix

use images instead of image to match model.forward kwarg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants