legato-demo / config.py
guangyangmusic's picture
chore: reorganize codebase
aa151d2
Raw
History Blame Contribute Delete
686 Bytes
"""Shared configuration and constants for the LEGATO OMR app."""
import os
import torch
APP_DIR = os.path.dirname(os.path.abspath(__file__))
ABC2XML_PATH = os.path.join(APP_DIR, "abc2xml.py")
BIBTEX = """@misc{yang2025legatolargescaleendtoendgeneralizable,
title={LEGATO: Large-scale End-to-end Generalizable Approach to Typeset OMR},
author={Guang Yang and Victoria Ebert and Nazif Tamer and Brian Siyuan Zheng and Luiza Pozzobon and Noah A. Smith},
year={2025},
eprint={2506.19065},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2506.19065},
}"""
# Portrait letter aspect: 8.5" × 11" → width/height
LETTER_ASPECT = 8.5 / 11