Skip to content

Commit 979fccc

Browse files
authored
Enable BLIP for auto VQA (#29499)
* Enable BLIP for auto VQA * Make style * Add VQA to BLIP pipeline tests
1 parent d45f47a commit 979fccc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/transformers/models/auto/modeling_auto.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,7 @@
964964

965965
MODEL_FOR_VISUAL_QUESTION_ANSWERING_MAPPING_NAMES = OrderedDict(
966966
[
967+
("blip", "BlipForQuestionAnswering"),
967968
("blip-2", "Blip2ForConditionalGeneration"),
968969
("vilt", "ViltForQuestionAnswering"),
969970
]

tests/models/blip/test_modeling_blip.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ class BlipModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCase):
432432
{
433433
"feature-extraction": BlipModel,
434434
"image-to-text": BlipForConditionalGeneration,
435+
"visual-question-answering": BlipForQuestionAnswering,
435436
}
436437
if is_torch_available()
437438
else {}

0 commit comments

Comments
 (0)