ilya16 commited on
Commit
e159e4d
·
verified ·
1 Parent(s): ef27d76

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +97 -0
README.md ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: symupe
3
+ license: cc-by-nc-sa-4.0
4
+ base_model:
5
+ - SyMuPe/Aria-MIDI-MLM
6
+ datasets:
7
+ - SyMuPe/PianoCoRe
8
+ tags:
9
+ - music
10
+ - piano
11
+ - midi
12
+ - classification
13
+ - quality-assessment
14
+ - transformer
15
+ ---
16
+
17
+ # SyMuPe: MIDI Quality Classifier
18
+
19
+ **MIDI-Quality-Classifier** is a model trained to automatically assess the quality of symbolic piano performances. It classifies MIDI files into four distinct categories: `score` (inexpressive/rendered), `high quality`, `low quality`, and `corrupted`.
20
+
21
+ Introduced in the paper: [**PianoCoRe: Combined and Refined Piano MIDI Dataset**](https://doi.org/10.5334/tismir.333).
22
+
23
+ - **SyMuPe Repo:** https://github.com/ilya16/SyMuPe
24
+ - **Project Repo:** https://github.com/ilya16/PianoCoRe
25
+ - **Dataset:** https://huggingface.co/datasets/SyMuPe/PianoCoRe
26
+
27
+ ## Architecture
28
+
29
+ - **Type:** Transformer Encoder
30
+ - **Backbone:** [12-layer Transformer (80M parameters)](https://huggingface.co/SyMuPe/Aria-MIDI-MLM) pre-trained on the deduped subset of the [Aria-MIDI](https://huggingface.co/datasets/loubb/aria-midi) dataset using a Multi-Mask Language Modeling (mMLM) objective.
31
+ - **Classification Module:** Single layer transformer and a classification head.
32
+ - **Objective:** Sequence Classification (4 classes).
33
+ - **Inputs (score-agnostic):** `Pitch`, `Velocity`, `TimeShift`, `Duration`, absolute `TimePosition`
34
+ - **Classes:**
35
+ - **Score (S):** Rendered or synthesized scores with constant tempo/dynamics.
36
+ - **High Quality (HQ):** Clean expressive performances (recorded or high-fidelity transcriptions).
37
+ - **Low Quality (LQ):** Transcriptions with noticeable noise or minor errors.
38
+ - **Corrupted (C):** Broken files or severely failed transcriptions.
39
+ - **Training:** Trained for 20,000 iterations on created subset of the [PianoCoRe](https://huggingface.co/datasets/SyMuPe/PianoCoRe) dataset as described in the paper.
40
+
41
+ ## Quick Start
42
+
43
+ Before using this model, ensure you have the `symupe` library installed (`pip install -U symupe`).
44
+
45
+ ```python
46
+ import torch
47
+ from symupe import AutoClassifier
48
+
49
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
50
+
51
+ # Build Classifier by loading the model and tokenizer directly from the Hub
52
+ classifier = AutoClassifier.from_pretrained(
53
+ "SyMuPe/MIDI-Quality-Classifier", device=device
54
+ )
55
+ # model, tokenizer, labels = classifier.model, classifier.tokenizer, classifier.labels
56
+
57
+ # Classify a MIDI file
58
+ result = classifier("performance.mid")
59
+ # result is MusicClassificationResult(...) containing:
60
+ # - midi, seq, probabilities, prediction, label, all_logits, all_probabilities, all_predictions,
61
+ # sequences and window_indices
62
+
63
+ print(f"Predicted Label: {result.label}")
64
+ print(f"Probabilities: {result.probabilities}")
65
+ ```
66
+
67
+ ## License
68
+
69
+ The model weights are distributed under the [CC-BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en) license.
70
+
71
+ ## Citation
72
+
73
+ If you use this model or the associated dataset in your research, please cite:
74
+
75
+ ```bibtex
76
+ @inproceedings{borovik2025symupe,
77
+ title = {{SyMuPe: Affective and Controllable Symbolic Music Performance}},
78
+ author = {Borovik, Ilya and Gavrilev, Dmitrii and Viro, Vladimir},
79
+ year = {2025},
80
+ booktitle = {Proceedings of the 33rd ACM International Conference on Multimedia},
81
+ pages = {10699--10708},
82
+ doi = {10.1145/3746027.3755871}
83
+ }
84
+ ```
85
+
86
+ ```bibtex
87
+ @article{borovik2026pianocore,
88
+ title = {{PianoCoRe: Combined and Refined Piano MIDI Dataset}},
89
+ author = {Borovik, Ilya},
90
+ year = {2026},
91
+ journal = {Transactions of the International Society for Music Information Retrieval},
92
+ volume = {9},
93
+ number = {1},
94
+ pages = {144--163},
95
+ doi = {10.5334/tismir.333}
96
+ }
97
+ ```