Instructions to use fawern/blip-Visual-QuestionAnswering-coco with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fawern/blip-Visual-QuestionAnswering-coco with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "visual-question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("visual-question-answering", model="fawern/blip-Visual-QuestionAnswering-coco")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForVisualQuestionAnswering processor = AutoProcessor.from_pretrained("fawern/blip-Visual-QuestionAnswering-coco") model = AutoModelForVisualQuestionAnswering.from_pretrained("fawern/blip-Visual-QuestionAnswering-coco", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload processor
Browse files
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
license: bsd-3-clause
|
| 4 |
-
base_model: Salesforce/blip-vqa-base
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
model-index:
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model: Salesforce/blip-vqa-base
|
| 3 |
library_name: transformers
|
| 4 |
license: bsd-3-clause
|
|
|
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
model-index:
|