BalOCR v2

BalOCR completed one full LoRA training pass over 11,043 Balochi image/text examples, with 2,761 optimizer updates. The training set contains 10,205 real Arabic-script pairs and 838 synthetic printed Latin images. Every training example was processed once. The 626,688-parameter adapter is used with PaddleOCR-VL-1.6 at its pinned revision.

Training took approximately 60.2 hours on CPU. Evaluation then compared the base and adapter on all 48 reserved diagnostics, with 24 Arabic and 24 synthetic Latin examples. Full training and the recorded evaluation have completed. Arabic OCR quality still needs substantial improvement.

Diagnostic results

Lower character error rate is better. Raw CER counts Unicode characters exactly. NFC/whitespace CER normalizes canonical Unicode composition and whitespace while retaining diacritics.

Diagnostic set Base raw CER BalOCR raw CER Base NFC/whitespace CER BalOCR NFC/whitespace CER
Real Arabic, 24 images 198.47% 160.39% 201.73% 72.10%
Synthetic Latin, 24 images 7.62% 3.46% 7.50% 3.40%

CER can exceed 100% when a prediction inserts or repeats substantial extra text. Seven base and eight adapted Arabic outputs reached the 4,096-token generation cap. Those outputs were scored against their complete references. Short/long crop behavior varies, and long Arabic inputs can produce severe repetition. Original Arabic source-book identity remains unverified, Latin diagnostics are synthetic, and project native-speaker reviews remain at zero. Production accuracy has not been established.

Complete evaluation · Training summary · Base predictions · BalOCR predictions

Use BalOCR

Clone the BalOCR code repository and follow its setup instructions. The SDK loads the fixed base revision and this LoRA adapter.

python -m balocr.model --image page.png --adapter shah-bakhsh/BalOCR --device cpu --output result.json

The accompanying full_train_cpu.py records the exact resumable training and evaluation procedure. It expects the frozen v2 experiment under a sibling full_data_v2 directory. Hyperparameters, source counts and data/weight hashes are in training_summary.json. The immutable dataset release is 9446db1014b1bc788c0eacbfba9bcd653392362d in shah-bakhsh/BalDataset.

Testing Space · Source credits · Earlier 40-step pilot

Downloads last month
39
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for shah-bakhsh/BalOCR

Adapter
(8)
this model

Dataset used to train shah-bakhsh/BalOCR

Space using shah-bakhsh/BalOCR 1