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
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.a0ad1e4
-
Update README.md (#22)
- Update README.md (ff7dc43029bd7f3523df906a09402fd8acc0c3b1)89b09ea
-
Update tokenizer_config.json (#16)
- Update tokenizer_config.json (b6f6cf333a2f765ec7bd887ec8a368d3c7fb4d64)637f179
-
Update config.json (#13)
- Update config.json (d2f78e1d92d90ee1f110b622caaae0d7edd02f9c)18188a6
-
Add TF weights (#12)
- Add TF weights (588a7b6c932a76e967ce1bebee461e412f5bd482) Co-authored-by: Matthew Carrigan <Rocketknight1@users.noreply.huggingface.co>b2902e7
-
Update README.md (#11)
- Update README.md (35d95889551a32b526b658aefa7842de6ad6eec1) Co-authored-by: Bo Li <luodian@users.noreply.huggingface.co>62ef7fd
-
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