[Blip2] Add Blip2Model (#21817)

* add v1

* add `Blip2Model`

- add relevant functions
- add tests
- add on automapping

* fix docs

* fix doctest
This commit is contained in:
Younes Belkada
2023-02-28 15:42:55 +01:00
committed by GitHub
parent ae9230af40
commit b8de7e448e
7 changed files with 441 additions and 3 deletions

View File

@@ -71,6 +71,14 @@ If you're interested in submitting a resource to be included here, please feel f
[[autodoc]] Blip2QFormerModel
- forward
## Blip2Model
[[autodoc]] Blip2Model
- forward
- get_text_features
- get_image_features
- get_qformer_features
## Blip2ForConditionalGeneration
[[autodoc]] Blip2ForConditionalGeneration