Image-to-Text
Transformers
PyTorch
JAX
Portuguese
vision-encoder-decoder
image-text-to-text
image-captioning
Instructions to use adalbertojunior/image_captioning_portuguese with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use adalbertojunior/image_captioning_portuguese 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="adalbertojunior/image_captioning_portuguese")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("adalbertojunior/image_captioning_portuguese") model = AutoModelForMultimodalLM.from_pretrained("adalbertojunior/image_captioning_portuguese") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,8 +1,23 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
|
|
|
| 6 |
Image Captioning in Portuguese trained with ViT and GPT2
|
| 7 |
|
| 8 |
[DEMO](https://huggingface.co/spaces/adalbertojunior/image_captioning_portuguese)
|
|
|
|
| 1 |
---
|
| 2 |
+
tags:
|
| 3 |
+
- image-to-text
|
| 4 |
+
- image-captioning
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
widget:
|
| 7 |
+
- src: >-
|
| 8 |
+
https://huggingface.co/datasets/mishig/sample_images/resolve/main/savanna.jpg
|
| 9 |
+
example_title: Savanna
|
| 10 |
+
- src: >-
|
| 11 |
+
https://huggingface.co/datasets/mishig/sample_images/resolve/main/football-match.jpg
|
| 12 |
+
example_title: Football Match
|
| 13 |
+
- src: >-
|
| 14 |
+
https://huggingface.co/datasets/mishig/sample_images/resolve/main/airport.jpg
|
| 15 |
+
example_title: Airport
|
| 16 |
+
language:
|
| 17 |
+
- pt
|
| 18 |
---
|
| 19 |
|
| 20 |
+
|
| 21 |
Image Captioning in Portuguese trained with ViT and GPT2
|
| 22 |
|
| 23 |
[DEMO](https://huggingface.co/spaces/adalbertojunior/image_captioning_portuguese)
|