Instructions to use Salesforce/blip-vqa-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Salesforce/blip-vqa-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("visual-question-answering", model="Salesforce/blip-vqa-base")# Load model directly from transformers import AutoProcessor, AutoModelForVisualQuestionAnswering processor = AutoProcessor.from_pretrained("Salesforce/blip-vqa-base") model = AutoModelForVisualQuestionAnswering.from_pretrained("Salesforce/blip-vqa-base") - Notebooks
- Google Colab
- Kaggle
Unable to use BLIP in conda.
#5
by tedoj - opened
I have created a virtual env in conda. And inside which I have git cloned the blip repository. Now whenever I'm trying to import them using "from transformers import BlipProcessor, BlipForQuestionAnswering" it's giving me an import error. How can I fix it?