Downloads · 30 days
2
2% of all-time downloads
ekizcemelih/TAMGA-tr-image-captioning-blip
TAMGA-tr-image-captioning-blip is a machine learning model from ekizcemelih. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
--- language: tr tags: - image-captioning - blip - generatedfromtrainer libraryname: transformers ---
Downloads · 30 days
2
2% of all-time downloads
All-time downloads
85
Public
Parameters
247M
990 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors990 MB · 100%
From the Hugging Face model README
language: tr tags:
Bu model, görselleri analiz ederek Türkçe açıklamalar üretmek üzere fine-tune edilmiştir.
from transformers import BlipProcessor, BlipForConditionalGeneration
from PIL import Image
import requests
# Modeli yükle
processor = BlipProcessor.from_pretrained("ekizcemelih/TAMGA-tr-image-captioning-blip")
model = BlipForConditionalGeneration.from_pretrained("ekizcemelih/TAMGA-tr-image-captioning-blip")
# Görseli yükle
img_url = '[https://storage.googleapis.com/sfr-vision-language-research/BLIP/demo.jpg](https://storage.googleapis.com/sfr-vision-language-research/BLIP/demo.jpg)'
raw_image = Image.open(requests.get(img_url, stream=True).raw).convert('RGB')
# Model girdisini hazırla
inputs = processor(raw_image, return_tensors="pt")
# Çıktı üret
out = model.generate(**inputs)
print(processor.decode(out[0], skip_special_tokens=True))