Downloads · 30 days
6
32% of all-time downloads
pgquiles/chant-omr
chant-omr is a image-to-text model from pgquiles. Use it when you need a caption or text from an image. It is set up for chant-omr. The card lists the license as mit.
End-to-end Optical Music Recognition for Gregorian chant square notation. Converts photographs of historical chant manuscripts into GABC notation.
Downloads · 30 days
6
32% of all-time downloads
All-time downloads
19
Public
Parameters
56.2M
865 MB on disk
Likes
0
Public
Click a slice to open those files.
.onnx427 MB · 49%
From the Hugging Face model README
End-to-end Optical Music Recognition for Gregorian chant square notation. Converts photographs of historical chant manuscripts into GABC notation.
Based on Transcoda's ConvNeXt-V2 + Transformer architecture (~59M params), retrained from scratch on ~20,000 GregoBase scores with domain augmentation for square notation.
| Property | Value |
|---|---|
| Architecture | ConvNeXt-V2 Tiny encoder + 8-layer Transformer decoder |
| Parameters | ~59M |
| Input | Score image (width 1050, variable height) |
| Output | GABC token sequence |
| Vocabulary | ~2048 BPE tokens |
| Training data | GregoBase (~20k scores, synthetic renders + augmentation) |
| Framework | PyTorch / Lightning |
No evaluation results available yet.
This repository contains the model in multiple formats:
| Format | Files | Use case |
|---|---|---|
| Safetensors | model.safetensors | PyTorch fine-tuning or inference |
| OpenVINO IR | openvino/*.xml + .bin | Production inference on Intel hardware |
| ONNX | onnx/*.onnx | Portable inference on any hardware |
pip install chant-omr
chant-omr predict score.png --model pgquiles/chant-omr --device openvino
from chant_omr.hub import download_from_hub
from chant_omr.inference.ov_decode import load_openvino_models, ov_predict_gabc
model_dir = download_from_hub("pgquiles/chant-omr")
gabc = ov_predict_gabc(
"score.png",
model_dir / "openvino",
beam_width=3,
)
print(gabc)
from chant_omr.hub import download_from_hub
from chant_omr.inference.checkpoint import load_model_from_safetensors
from chant_omr.inference.predict import predict_gabc_from_hub
model_dir = download_from_hub("pgquiles/chant-omr")
gabc = predict_gabc_from_hub("score.png", model_dir)
print(gabc)
Uploaded with chant-omr v0.1.0