Views
No views yet
model-small)| Component | Setting | Notes |
|---|---|---|
| Backbone | lightweight | Use a 3-stage CNN (faster than ResNet). |
| Head | transformer_ctc | Shallow Transformer (2 layers, d=128). |
| Input Size | 32px | Lower resolution for speed. |
| Params | ~1.6 Million | Very small, suitable for mobile/CPU. |
model90k/
├── model.safetensors # PyTorch weights (SafeTensors format)
├── model.onnx # Exported ONNX model
├── config.yml # Model configuration
├── khmer_dict.txt # Character vocabulary list
├── model_vocab.json # Full vocabulary mapping
└── README.md # This file1python tools/export/predict.py \
2 --onnx model90k/model.onnx \
3 --vocab model90k/model_vocab.json \
4 --image path/to/image.png \
5 --height 32--height 32 as this model was trained on lower resolution images.1from safetensors.torch import load_file
2state_dict = load_file("model90k/model.safetensors")
3# load into model...model9k (trained on 10x more data).