File size: 2,093 Bytes
5239521
f267af6
 
 
 
 
 
 
 
 
 
 
 
 
 
5239521
f267af6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
license: cc-by-sa-4.0
task_categories:
  - image-to-text
language:
  - en
tags:
  - music
  - optical-music-recognition
  - omr
  - sheet-music
  - musicxml
  - piano
size_categories:
  - 10K<n<100K
---

# OLiMPiC — OpenScore Lieder Linearized MusicXML Piano Corpus

A HuggingFace-formatted mirror of the [OLiMPiC dataset](https://github.com/ufal/olimpic-icdar24)
for end-to-end optical music recognition of pianoform music.

## Dataset description

OLiMPiC provides system-level (one staff row) crops of piano scores paired with
ground-truth annotations in Linearized MusicXML (LMX) format. Each sample is one
system — the smallest unit that makes musical sense for training sequence models.

- **Synthetic variant**: 17,945 rendered systems (train/dev/test)
- **Scanned variant**: ~2,900 real IMSLP scans (dev/test only)
- **Source**: OpenScore Lieder corpus (1,356 manually verified scores)

## Format

```python
{
    "image":       PIL.Image,   # system-level crop (one row of grand staff)
    "lmx":         str,         # Linearized MusicXML token sequence
    "musicxml":    str,         # full MusicXML for this system
    "score_id":    str,         # OpenScore score identifier
    "page_system": str,         # e.g. "p2-s3" (page 2, system 3)
    "source":      str,         # "synthetic" or "scanned"
    "split":       str,         # "train", "dev", or "test"
}
```

## Usage

```python
from datasets import load_dataset

ds = load_dataset("zzsi/olimpic")
example = ds["train"][0]
print(example["lmx"][:200])
example["image"].show()
```

## License

[CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)

## Attribution

Please cite the original work:

```bibtex
@inproceedings{OLiMPiC,
  title     = {Practical End-to-End Optical Music Recognition for Pianoform Music},
  author    = {Fier, Jiří and Hajič, Jan},
  booktitle = {International Conference on Document Analysis and Recognition (ICDAR)},
  year      = {2024}
}
```

Original dataset: <https://github.com/ufal/olimpic-icdar24>
Original authors: Jiří Fier, Jan Hajič (UFAL, Charles University)