Instructions to use kaan84/sinhala-print-trocr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kaan84/sinhala-print-trocr with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("image-to-text", model="kaan84/sinhala-print-trocr")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("kaan84/sinhala-print-trocr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Reproducibility Checklist
Complete every item before public release.
Claims and scope
- Primary research question is stated.
- Confirmatory hypotheses are stated before training.
- In-scope and out-of-scope uses are stated.
- Final claims match the evaluation unit.
Data
- Immutable model and dataset revisions recorded.
- Train and validation indices committed.
- Split-index SHA-256 checksums recorded.
- Real line benchmark frozen before prediction review.
- Exclusion rules and counts reported.
- Dataset licenses and attributions included.
Training
- Seeds and fixed hyperparameters declared.
- Hardware and runtime recorded.
- Dependency versions recorded.
- Checkpoints saved in safetensors format.
- TensorBoard logs retained under
runs/. - Three seeded runs completed.
Evaluation
- CER is the primary metric.
- WER is secondary.
- Text normalization is specified.
- Raw and normalized results reported.
- Paired bootstrap confidence intervals reported.
- Baselines run on identical evaluation units.
- Period-level sample counts reported.
- Error analysis follows the pre-declared taxonomy.
Publication
- Intermediate checkpoint license clarified.
- Model-card metadata updated with the final license.
- Real results added to
model-index. - Inference example tested from a clean environment.
- Intended use, limitations, bias, and responsible-use sections reviewed.
- DOI generated after the repository becomes stable.
- Final citation added.