Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.2.0
metadata
title: Piano Engraving
emoji: π
colorFrom: gray
colorTo: purple
sdk: gradio
sdk_version: 6.1.0
app_file: app.py
pinned: false
license: mit
short_description: Correct Voice and Staff for Piano scores (musicxml, mei)
Piano Engraving (piano_svsep)
This Space wraps the piano_svsep model to predict voice and staff assignments for piano scores (MusicXML/MEI). The default checkpoint is loaded from the installed package so it works out of the box inside the piano-engraving conda environment.
Local setup
- Create the conda env:
conda create -n piano-engraving python=3.10 -y - Activate it:
conda activate piano-engraving - Install deps:
pip install -r requirements.txt- If you do not have a CUDA GPU, drop the
--index-url/--find-linkslines and let PyTorch select the CPU wheels.
- If you do not have a CUDA GPU, drop the
Running the app locally
- Start the Gradio UI:
python app.py - Upload a
.musicxml,.xml, or.meiscore. - Optional: provide a custom checkpoint path; otherwise the bundled
model.ckptin this repository root is used. - Download the predicted score (
*_pred.musicxml) from the output panel.
Notes
- Predictions are written to a temp directory; the status box shows the path.
- If the default checkpoint cannot be found, set
Model checkpoint pathto your ownmodel.ckptfile.