Instructions to use Salesforce/blip-image-captioning-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Salesforce/blip-image-captioning-base with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" 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("image-to-text", model="Salesforce/blip-image-captioning-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Salesforce/blip-image-captioning-base") model = AutoModelForMultimodalLM.from_pretrained("Salesforce/blip-image-captioning-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
There's a type in loading BLIPConditionalGeneration model.35d9588
-
Add tokenizer.json (#8)
- Add tokenizer.json (23645b9fac2444b88fb8c37148de310488b342b8) Co-authored-by: Jonatan Kłosko <jonatanklosko@users.noreply.huggingface.co>60667f7
-
Update README.md (#5)
- Update README.md (d1b64295f201226d290e26d31980598d49437571) Co-authored-by: Patrick von Platen <patrickvonplaten@users.noreply.huggingface.co>9f3084c
-
Update README.md
b1a4162
-
Update README.md
3007fbe -
Update README.md
cab088c -
Update README.md
ac7d6bc -
Update README.md
12d29a7
-
Update README.md
25d2acb -
Update README.md
af1d88b -
Update README.md
039efaf -
Create README.md
abbaae4
-
Upload BlipForConditionalGeneration
8fccca1 -
Upload BlipForConditionalGeneration
1a92cdc -
Update preprocessor_config.json
14216c0 -
Update preprocessor_config.json
eadf1b8 -
Update preprocessor_config.json
156b8ed -
Upload processor
f656a37 -
initial commit
Younes Belkada08a482e