Views
No views yet

ç, ğ, ı, İ, ö, ş, ü and measured results on unseen words.
| Model | CER ↓ | Exact word accuracy ↑ |
|---|---|---|
microsoft/trocr-small-printed | 89.43% | 3.44% |
| DUSUNEN Oku 62M v1 | 0.24% | 98.39% |
benchmark-baseline.json and benchmark-final.json. reload-validation.json
records a second evaluation after loading the saved checkpoint from disk.1from PIL import Image
2import torch
3from transformers import TrOCRProcessor, VisionEncoderDecoderModel
4
5model_id = "GoktugD/DUSUNEN-Oku-62M-v1"
6processor = TrOCRProcessor.from_pretrained(model_id)
7model = VisionEncoderDecoderModel.from_pretrained(model_id)
8
9image = Image.open("cropped_turkish_word.png").convert("RGB")
10pixel_values = processor(images=image, return_tensors="pt").pixel_values
11with torch.inference_mode():
12 generated = model.generate(pixel_values, max_length=32)
13print(processor.batch_decode(generated, skip_special_tokens=True)[0])04e994ab854b0089d4929f48c2b4dbe2ce78a34079919774c595fcaa0be2feda583fec4cca6f5d2a3e-5train_oku_ocr.pyLICENSE for attribution and upstream notes.model.safetensors SHA-256: 601e981bb45c0cf56edd0441097c151c7855a60a738ff8e0d3db493dadacdffe