Instructions to use michelecafagna26/git-base-captioning-ft-hl-actions with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use michelecafagna26/git-base-captioning-ft-hl-actions 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/git-base-captioning-ft-hl-actions")# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("michelecafagna26/git-base-captioning-ft-hl-actions") model = AutoModelForImageTextToText.from_pretrained("michelecafagna26/git-base-captioning-ft-hl-actions") - Notebooks
- Google Colab
- Kaggle
Commit ·
2744151
1
Parent(s): 8c21b6c
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."
|
| 61 |
```
|
| 62 |
|
| 63 |
## BibTex and citation info
|