metythorn/ocr-stn-cnn-transformer-base
By metythorn · ↓ 4 · ♥ 1 · Updated 2025-12-12
What's in this repo
This page lists the files in metythorn/ocr-stn-cnn-transformer-base, including khmer_ocr.onnx.
- 1 ONNX models (.onnx files)
- 4 files, including 1 .md, 1 .json, 1 .onnx
- Last updated 2025-12-12
ONNX files
| File | Size | Download |
|---|---|---|
| khmer_ocr.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
Khmer OCR CNN + Transformer
This repository contains a ResNet + Transformer decoder checkpoint for Khmer OCR, I don’t have a public paper for this model — everything comes from thousands of experiments across different model architectures and datasets.
Installation
pip install mer
Usage
from mer import Mer
model = Mer(markdown=True, device='cuda')
result = model.predict("sample_image.png")
print("Predicted text:", result)
Model info
Created: 2025-12-05
Updated: 2025-12-12
View on Hugging Face