How to use from the
Use from the
Transformers library
# 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", device_map="auto")
Quick Links

Image Captioning in Portuguese trained with ViT and GPT2

DEMO

Research supported with Cloud TPUs from Google's TPU Research Cloud (TRC)

Downloads last month
22
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Space using adalbertojunior/image_captioning_portuguese 1