transformers
transformers copied to clipboard
🚨 Add Blip2ForImageTextRetrieval
What does this PR do?
Add Blip2ForImageTextRetrieval
, Blip2TextModelWithProjection
, Blip2VisionModelWithProjection
models to be able to get Image Text Matching scores, and extract text,image,multimodal features.
Fixes part of #25300 #25245
This is continuation of https://github.com/huggingface/transformers/pull/25612, I tried to apply most of the feedback received in that PR.
Before submitting
- [ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [x] Did you read the contributor guideline, Pull Request section?
- [x] Was this discussed/approved via a Github issue or the forum? Please add a link to it if that's the case.
- [x] Did you make sure to update the documentation with your changes? Here are the documentation guidelines, and here are tips on formatting docstrings.
- [x] Did you write any new necessary tests?
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag members/contributors who may be interested in your PR.
@ArthurZucker @amyeroberts
cc @NielsRogge and @younesbelkada if one of you want to review on @jpizarrom makes the CIs go green!
cc @NielsRogge and @younesbelkada if one of you want to review on @jpizarrom makes the CIs go green!
Hi, what could I do to makes the CIs go green! shall I just merge to upstream/main, or rebase to it?
@jpizarrom It's preferable for you to rebase onto main. To see how to make the CIs green, you'll need to click on details
and look at the output error logs from circleci. I'd suggest doing this after rebasing so see which errors are coming from this branch.
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.