Downloads · 30 days
25
16% of all-time downloads
GoktugD/DUSUNEN-Oku-62M-v1
DUSUNEN-Oku-62M-v1 is a image-to-text model from GoktugD. Use it when you need a caption or text from an image. It is set up for transformers. The card lists the license as cc-by-sa-4.0.
Downloads · 30 days
25
16% of all-time downloads
All-time downloads
157
Public
Parameters
61.6M
249 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors246 MB · 97%
From the Hugging Face model README

A compact Turkish OCR recognizer for cropped printed-word images, with full
support for ç, ğ, ı, İ, ö, ş, ü and measured results on unseen words.
Oku is a 61.6M-parameter TrOCR model. It takes a cropped image containing one printed Turkish word and generates the transcription. Pair it with a text detector when processing full documents.
Try DUSUNEN Oku in the live browser demo

Every vocabulary word occurs in only one dataset split. The 12,500-image test split therefore measures recognition of words unseen during fine-tuning. Both models use identical preprocessing and greedy decoding.
| Model | CER ↓ | Exact word accuracy ↑ |
|---|---|---|
microsoft/trocr-small-printed | 89.43% | 3.44% |
| DUSUNEN Oku 62M v1 | 0.24% | 98.39% |
Machine-readable baseline and final results are included in
benchmark-baseline.json and benchmark-final.json. reload-validation.json
records a second evaluation after loading the saved checkpoint from disk.
from PIL import Image
import torch
from transformers import TrOCRProcessor, VisionEncoderDecoderModel
model_id = "GoktugD/DUSUNEN-Oku-62M-v1"
processor = TrOCRProcessor.from_pretrained(model_id)
model = VisionEncoderDecoderModel.from_pretrained(model_id)
image = Image.open("cropped_turkish_word.png").convert("RGB")
pixel_values = processor(images=image, return_tensors="pt").pixel_values
with torch.inference_mode():
generated = model.generate(pixel_values, max_length=32)
print(processor.batch_decode(generated, skip_special_tokens=True)[0])
04e994ab854b0089d4929f48c2b4dbe2ce78a34079919774c595fcaa0be2feda583fec4cca6f5d2a3e-5train_oku_ocr.pyLICENSE for attribution and upstream notes.model.safetensors SHA-256: 601e981bb45c0cf56edd0441097c151c7855a60a738ff8e0d3db493dadacdffe
Developed and released by Göktuğ Düşünen.