Instructions to use michelecafagna26/blip-base-captioning-ft-hl-narratives with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use michelecafagna26/blip-base-captioning-ft-hl-narratives 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="michelecafagna26/blip-base-captioning-ft-hl-narratives")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("michelecafagna26/blip-base-captioning-ft-hl-narratives") model = AutoModelForMultimodalLM.from_pretrained("michelecafagna26/blip-base-captioning-ft-hl-narratives", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
a026d81
1
Parent(s): 8baa378
Update README.md
Browse files
README.md
CHANGED
|
@@ -57,7 +57,7 @@ generated_ids = model.generate(pixel_values=pixel_values, max_length=50,
|
|
| 57 |
|
| 58 |
processor.batch_decode(generated_ids, skip_special_tokens=True)
|
| 59 |
|
| 60 |
-
>>>
|
| 61 |
```
|
| 62 |
|
| 63 |
## BibTex and citation info
|
|
|
|
| 57 |
|
| 58 |
processor.batch_decode(generated_ids, skip_special_tokens=True)
|
| 59 |
|
| 60 |
+
>>> "she is holding an umbrella near a lake and is on vacation."
|
| 61 |
```
|
| 62 |
|
| 63 |
## BibTex and citation info
|