Downloads · 30 days
4
1% of all-time downloads
sunbv56/vit-gpt2-imagecaptioningfood
vit-gpt2-imagecaptioningfood is a image-to-text model from sunbv56. Use it when you need a caption or text from an image. It is set up for transformers. The card lists the license as apache-2.0.
The model fined tuning with large data of API from bbcgoodfood.com
Downloads · 30 days
4
1% of all-time downloads
All-time downloads
425
Public
Repo size
9.7 GB
Likes
0
Public
Click a slice to open those files.
.bin2 GB · 51%
From the Hugging Face model README
The model fined tuning with large data of API from bbcgoodfood.com
from transformers import AutoTokenizer, VisionEncoderDecoderModel, ViTFeatureExtractor
tokenizer = AutoTokenizer.from_pretrained("gpt2") # for text
feature_extractor = ViTFeatureExtractor.from_pretrained("google/vit-base-patch16-224") # for image
model = VisionEncoderDecoderModel.from_pretrained("sunbv56/vit-gpt2-imagecaptioningfood") # load model
https://www.kaggle.com/code/thuntrngbnh/test-model-vit-gpt2-icf/notebook