Image-to-Text
Transformers
TensorBoard
Safetensors
English
git
image-text-to-text
Generated from Trainer
image-captioning
Instructions to use mrSoul7766/git-base-instagram-cap with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mrSoul7766/git-base-instagram-cap 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="mrSoul7766/git-base-instagram-cap")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("mrSoul7766/git-base-instagram-cap") model = AutoModelForMultimodalLM.from_pretrained("mrSoul7766/git-base-instagram-cap", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -27,7 +27,7 @@ It achieves the following results on the evaluation set:
|
|
| 27 |
|
| 28 |
### Usage
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
```python
|
| 33 |
# Use a pipeline as a high-level helper
|
|
|
|
| 27 |
|
| 28 |
### Usage
|
| 29 |
|
| 30 |
+
you can leverage the capabilities provided by the Hugging Face Transformers library. Here's a basic example using Python:
|
| 31 |
|
| 32 |
```python
|
| 33 |
# Use a pipeline as a high-level helper
|