Downloads · 30 days
68
1% of all-time downloads
hezarai/vit-roberta-fa-image-captioning-flickr30k
vit-roberta-fa-image-captioning-flickr30k is a image-to-text model from hezarai. Use it when you need a caption or text from an image. It is set up for hezar.
A Persian image captioning model constructed from a ViT + RoBERTa architecture trained on flickr30k-fa (created by Sajjad Ayoubi). The encoder (ViT) was initialized from https://huggingface.co/google/vit-base-patch16-…
Downloads · 30 days
68
1% of all-time downloads
All-time downloads
5.1K
Public
Repo size
933 MB
Likes
1
Public
Click a slice to open those files.
.pt933 MB · 100%
From the Hugging Face model README
A Persian image captioning model constructed from a ViT + RoBERTa architecture trained on flickr30k-fa (created by Sajjad Ayoubi). The encoder (ViT) was initialized from https://huggingface.co/google/vit-base-patch16-224 and the decoder (RoBERTa) was initialized from https://huggingface.co/HooshvareLab/roberta-fa-zwnj-base .
pip install hezar
from hezar.models import Model
model = Model.load("hezarai/vit-roberta-fa-image-captioning-flickr30k")
captions = model.predict("example_image.jpg")
print(captions)