Datasets:
image imagewidth (px) 8.06k 8.06k | sheet stringclasses 18
values | music stringclasses 2
values | what stringclasses 18
values | condition stringclasses 6
values | truth stringclasses 18
values |
|---|---|---|---|---|---|
a1 | made-up | plain notes | angle | sheets/a.musicxml | |
a1 | made-up | plain notes | curve | sheets/a.musicxml | |
a1 | made-up | plain notes | flat | sheets/a.musicxml | |
a1 | made-up | plain notes | shadow | sheets/a.musicxml | |
b1 | made-up | keys and accidentals | angle | sheets/b.musicxml | |
b1 | made-up | keys and accidentals | curve | sheets/b.musicxml | |
b1 | made-up | keys and accidentals | flat | sheets/b.musicxml | |
b1 | made-up | keys and accidentals | flat | sheets/b.musicxml | |
b1 | made-up | keys and accidentals | shadow | sheets/b.musicxml | |
c1 | made-up | rhythms | angle | sheets/c.musicxml | |
c1 | made-up | rhythms | curve | sheets/c.musicxml | |
c1 | made-up | rhythms | flat | sheets/c.musicxml | |
c1 | made-up | rhythms | shadow | sheets/c.musicxml | |
d1 | made-up | range and clefs | angle | sheets/d.musicxml | |
d1 | made-up | range and clefs | curve | sheets/d.musicxml | |
d1 | made-up | range and clefs | flat | sheets/d.musicxml | |
d1 | made-up | range and clefs | shadow | sheets/d.musicxml | |
e1 | made-up | dense runs | angle | sheets/e.musicxml | |
e1 | made-up | dense runs | curve | sheets/e.musicxml | |
e1 | made-up | dense runs | flat | sheets/e.musicxml | |
e1 | made-up | dense runs | shadow | sheets/e.musicxml | |
f1 | made-up | markings | angle | sheets/f.musicxml | |
f1 | made-up | markings | curve | sheets/f.musicxml | |
f1 | made-up | markings | flat | sheets/f.musicxml | |
f1 | made-up | markings | shadow | sheets/f.musicxml | |
g1 | made-up | repeats and structure | angle | sheets/g.musicxml | |
g1 | made-up | repeats and structure | curve | sheets/g.musicxml | |
g1 | made-up | repeats and structure | flat | sheets/g.musicxml | |
g1 | made-up | repeats and structure | shadow | sheets/g.musicxml | |
h1 | made-up | lead sheet | angle | sheets/h.musicxml | |
h1 | made-up | lead sheet | curve | sheets/h.musicxml | |
h1 | made-up | lead sheet | flat | sheets/h.musicxml | |
h1 | made-up | lead sheet | shadow | sheets/h.musicxml | |
i2 | real | Beethoven, String Quartet Op. 18 No. 5, violin 1 | angle | sheets/i.musicxml | |
i2 | real | Beethoven, String Quartet Op. 18 No. 5, violin 1 | curve | sheets/i.musicxml | |
i2 | real | Beethoven, String Quartet Op. 18 No. 5, violin 1 | curve | sheets/i.musicxml | |
i2 | real | Beethoven, String Quartet Op. 18 No. 5, violin 1 | curve | sheets/i.musicxml | |
i2 | real | Beethoven, String Quartet Op. 18 No. 5, violin 1 | curve-shadow | sheets/i.musicxml | |
i2 | real | Beethoven, String Quartet Op. 18 No. 5, violin 1 | flat | sheets/i.musicxml | |
i2 | real | Beethoven, String Quartet Op. 18 No. 5, violin 1 | flat | sheets/i.musicxml | |
i2 | real | Beethoven, String Quartet Op. 18 No. 5, violin 1 | shadow | sheets/i.musicxml | |
i2 | real | Beethoven, String Quartet Op. 18 No. 5, violin 1 | stand | sheets/i.musicxml | |
j2 | real | Beethoven, String Quartet Op. 18 No. 5, cello | angle | sheets/j.musicxml | |
j2 | real | Beethoven, String Quartet Op. 18 No. 5, cello | curve | sheets/j.musicxml | |
j2 | real | Beethoven, String Quartet Op. 18 No. 5, cello | curve | sheets/j.musicxml | |
j2 | real | Beethoven, String Quartet Op. 18 No. 5, cello | curve-shadow | sheets/j.musicxml | |
j2 | real | Beethoven, String Quartet Op. 18 No. 5, cello | flat | sheets/j.musicxml | |
j2 | real | Beethoven, String Quartet Op. 18 No. 5, cello | flat | sheets/j.musicxml | |
j2 | real | Beethoven, String Quartet Op. 18 No. 5, cello | shadow | sheets/j.musicxml | |
j2 | real | Beethoven, String Quartet Op. 18 No. 5, cello | stand | sheets/j.musicxml | |
k2 | real | Brahms, String Quartet Op. 51 No. 1, violin 1 | angle | sheets/k.musicxml | |
k2 | real | Brahms, String Quartet Op. 51 No. 1, violin 1 | curve | sheets/k.musicxml | |
k2 | real | Brahms, String Quartet Op. 51 No. 1, violin 1 | curve | sheets/k.musicxml | |
k2 | real | Brahms, String Quartet Op. 51 No. 1, violin 1 | curve-shadow | sheets/k.musicxml | |
k2 | real | Brahms, String Quartet Op. 51 No. 1, violin 1 | flat | sheets/k.musicxml | |
k2 | real | Brahms, String Quartet Op. 51 No. 1, violin 1 | flat | sheets/k.musicxml | |
k2 | real | Brahms, String Quartet Op. 51 No. 1, violin 1 | shadow | sheets/k.musicxml | |
k2 | real | Brahms, String Quartet Op. 51 No. 1, violin 1 | stand | sheets/k.musicxml | |
l2 | real | Brahms, String Quartet Op. 51 No. 1, cello | angle | sheets/l.musicxml | |
l2 | real | Brahms, String Quartet Op. 51 No. 1, cello | curve | sheets/l.musicxml | |
l2 | real | Brahms, String Quartet Op. 51 No. 1, cello | curve | sheets/l.musicxml | |
l2 | real | Brahms, String Quartet Op. 51 No. 1, cello | curve-shadow | sheets/l.musicxml | |
l2 | real | Brahms, String Quartet Op. 51 No. 1, cello | flat | sheets/l.musicxml | |
l2 | real | Brahms, String Quartet Op. 51 No. 1, cello | flat | sheets/l.musicxml | |
l2 | real | Brahms, String Quartet Op. 51 No. 1, cello | shadow | sheets/l.musicxml | |
l2 | real | Brahms, String Quartet Op. 51 No. 1, cello | stand | sheets/l.musicxml | |
m2 | real | Brahms, String Quartet Op. 51 No. 2, viola | angle | sheets/m.musicxml | |
m2 | real | Brahms, String Quartet Op. 51 No. 2, viola | curve | sheets/m.musicxml | |
m2 | real | Brahms, String Quartet Op. 51 No. 2, viola | curve | sheets/m.musicxml | |
m2 | real | Brahms, String Quartet Op. 51 No. 2, viola | curve-shadow | sheets/m.musicxml | |
m2 | real | Brahms, String Quartet Op. 51 No. 2, viola | flat | sheets/m.musicxml | |
m2 | real | Brahms, String Quartet Op. 51 No. 2, viola | flat | sheets/m.musicxml | |
m2 | real | Brahms, String Quartet Op. 51 No. 2, viola | shadow | sheets/m.musicxml | |
m2 | real | Brahms, String Quartet Op. 51 No. 2, viola | stand | sheets/m.musicxml | |
n2 | real | Haydn, String Quartet Op. 1 No. 1, violin 1 | angle | sheets/n.musicxml | |
n2 | real | Haydn, String Quartet Op. 1 No. 1, violin 1 | curve | sheets/n.musicxml | |
n2 | real | Haydn, String Quartet Op. 1 No. 1, violin 1 | curve | sheets/n.musicxml | |
n2 | real | Haydn, String Quartet Op. 1 No. 1, violin 1 | curve-shadow | sheets/n.musicxml | |
n2 | real | Haydn, String Quartet Op. 1 No. 1, violin 1 | flat | sheets/n.musicxml | |
n2 | real | Haydn, String Quartet Op. 1 No. 1, violin 1 | flat | sheets/n.musicxml | |
n2 | real | Haydn, String Quartet Op. 1 No. 1, violin 1 | shadow | sheets/n.musicxml | |
n2 | real | Haydn, String Quartet Op. 1 No. 1, violin 1 | stand | sheets/n.musicxml | |
o2 | real | Dvořák, String Quartet Op. 51, viola | angle | sheets/o.musicxml | |
o2 | real | Dvořák, String Quartet Op. 51, viola | curve | sheets/o.musicxml | |
o2 | real | Dvořák, String Quartet Op. 51, viola | curve | sheets/o.musicxml | |
o2 | real | Dvořák, String Quartet Op. 51, viola | curve-shadow | sheets/o.musicxml | |
o2 | real | Dvořák, String Quartet Op. 51, viola | flat | sheets/o.musicxml | |
o2 | real | Dvořák, String Quartet Op. 51, viola | flat | sheets/o.musicxml | |
o2 | real | Dvořák, String Quartet Op. 51, viola | shadow | sheets/o.musicxml | |
o2 | real | Dvořák, String Quartet Op. 51, viola | stand | sheets/o.musicxml | |
p2 | real | Beethoven, String Quartet Op. 18 No. 3, viola | angle | sheets/p.musicxml | |
p2 | real | Beethoven, String Quartet Op. 18 No. 3, viola | curve | sheets/p.musicxml | |
p2 | real | Beethoven, String Quartet Op. 18 No. 3, viola | curve | sheets/p.musicxml | |
p2 | real | Beethoven, String Quartet Op. 18 No. 3, viola | curve-shadow | sheets/p.musicxml | |
p2 | real | Beethoven, String Quartet Op. 18 No. 3, viola | flat | sheets/p.musicxml | |
p2 | real | Beethoven, String Quartet Op. 18 No. 3, viola | flat | sheets/p.musicxml | |
p2 | real | Beethoven, String Quartet Op. 18 No. 3, viola | shadow | sheets/p.musicxml | |
p2 | real | Beethoven, String Quartet Op. 18 No. 3, viola | stand | sheets/p.musicxml | |
q2 | real | Dvořák, String Quartet Op. 51, violin 1 | angle | sheets/q.musicxml | |
q2 | real | Dvořák, String Quartet Op. 51, violin 1 | curve | sheets/q.musicxml |
Sheet Music Scanner test set
The three sets I score Sheet Music Scanner on, with the true score of every page. None of it was ever trained on.
| Set | What it is | Pictures | Notes | Size |
|---|---|---|---|---|
photos |
My iPhone photos of 18 printed pages: ten real string parts and eight made-up sheets, flat, bent, shadowed, angled and on a music stand | 114 | 19,859 | 1.1 GB |
survey |
Clean pictures of page one of every part of OpenScore's string quartets that MuseScore would draw | 442 | 70,278 in the 434 scored | 152 MB |
t1 |
Synthetic phone photos from my generator, with every staff line's true path | 2,000 | 398,148 | 2.6 GB |
Each set catches something the others miss. The photos are real and few. The survey is real notation at scale with no camera, so it says what notation gets misread. t1 knows its true staff lines, so it splits the line finder's mistakes from the reader's, and it's harsher than my photos on purpose: steep angles, dim light, pages cut off at the edge.
Score a model
uv run evaluate.py # all three sets, model v1.0, about 20 minutes on a GPU
uv run evaluate.py --set photos --revision v1.0
evaluate.py downloads the model and this set, reads every picture and prints the share of notes wrong, before and after the measure check, by set and by kind of photo. A mistake is an edit between the true score's notes and rests and the ones read, in order, each note being its pitch and length: a wrong pitch, a wrong length, a note missed or added. The share is all the mistakes in a set over all its true notes.
Version 1.0 of the model, scored with this script on 2026-11-17:
| Set | Pictures | Notes | Wrong | After the measure check |
|---|---|---|---|---|
| photos, real music | 81 | 13,127 | 1.10% | 0.21% |
| photos, real music, flat | 20 | 3,234 | 0.65% | 0.06% |
| photos, real music, shadow | 10 | 1,617 | 1.05% | 0.06% |
| photos, real music, on a stand | 10 | 1,617 | 1.24% | 0.12% |
| photos, real music, curve | 21 | 3,425 | 0.99% | 0.12% |
| photos, real music, curve and shadow | 10 | 1,617 | 1.48% | 0.25% |
| photos, real music, angle | 10 | 1,617 | 1.79% | 0.87% |
| photos, made-up sheets | 33 | 6,732 | 0.53% | 0.53% |
| survey | 434 | 70,278 | 3.32% | 2.17% |
| t1 | 2,000 | 398,148 | 2.86% | 2.91% |
| t1, well taken | 273 | 52,750 | 0.20% | 0.23% |
| t1, bent, dim or at an angle | 1,487 | 294,785 | 2.31% | 2.36% |
| t1, music cut off by the photo's edge | 240 | 50,613 | 8.85% | 8.93% |
On an RTX 4090 it takes 18 minutes for all three sets. On a CPU about one photo in ten reads a note or a few differently, so the totals move a little.
photos
114 photos I took with an iPhone 16, as its camera wrote them, of pages I printed on a laser printer. Each file name is the sheet, the conditions and a number: q2-curve-01.jpg.
| Conditions | How | Photos |
|---|---|---|
flat |
Flat on a table in good light, the phone straight above | 29 |
shadow |
As flat, with the phone's or a hand's shadow across the page |
18 |
angle |
Flat, the phone tilted, as from a chair | 18 |
curve |
Bent, as a page in an open book | 29 |
curve-shadow |
Bent and shadowed (real music only) | 10 |
stand |
On a music stand in room light, from where the player would be (real music only) | 10 |
The ten real pages, i2 to r2, are page one of string parts from OpenScore's string quartets as MuseScore 4.7.6 draws them: Beethoven, Brahms, Haydn, Dvořák and Borodin, with triplets, tenor and alto clefs, double stops, grace notes and long rests. The eight made-up sheets, a1 to h1, are engraved by Verovio and each test one thing: plain notes, keys and accidentals, rhythms, range and clefs, dense runs, markings, repeats, and a lead sheet. photos/sheets/ has each page's true score as MusicXML and the PDF I printed.
The photos' metadata is gone (camera, software, time taken). Only the orientation is kept, so they still stand the right way up. The pictures themselves are byte for byte what the camera wrote: scripts/strip_photos.py copies the compressed image without decoding it.
metadata.jsonl gives each photo's sheet, whether its music is real or made up, what the sheet tests and its conditions.
survey
Page one of each part of every score in OpenScore's string quartets that MuseScore 4.7.6 would draw: 442 pages of 113 scores, at 300 dots an inch. Haydn wrote 111 of the pages, Mozart 44 and Beethoven 37; the other 250 are by 43 composers. The ten pages that are also in photos are left out.
Each <score>-<part>.png has its true score beside it as .musicxml: MuseScore's MusicXML of the part, cut at the first page break, with what the page doesn't print taken out (OpenScore's files keep hidden rests and playback-only marks). music21 can't read the true scores of 8 pages, the parts of scores 8482283 and 8661306, so 434 are scored. index.tsv lists every part OpenScore has and why one was left out.
Two checks on the true scores: the reader that was then the best read 95 pages with no note wrong, and no page shows a run of missing or added notes, which a cut at the wrong measure would. 42 pages have a measure with two voices sounding at once, which the reader can't read.
scripts/make_survey.py makes it again, with MuseScore 4.7.6. Its Linux AppImage runs without a screen: extract it with --appimage-extract, and the script runs squashfs-root/AppRun with MU_QT_QPA_PLATFORM=offscreen. About 70 minutes.
t1
2,000 photos from my generator at commit 3beb748 with seed 3, which no training set uses. The music is all from its composer, not real scores. Each <number>.jpg has a <number>.json beside it with the true tokens of every line, every staff line's path through the photo in pixels, the page's corners, and how the photo was made: the sheet's shape, the light, the camera's tilt and lens. The generator's README describes every field.
metadata.jsonl sorts the photos by the two accuracy goals I'm working to:
| Kind | Photos | Goal |
|---|---|---|
| Well taken: flat, bright or indoor light, the camera within 20° of straight above | 273 | 99.9% of notes right |
| Bent, dim or at an angle | 1,487 | 99.5% |
| Music cut off by the photo's edge | 240 | None: nobody can read a clef they can't see |
Licence
CC BY 4.0. Credit "Greg Clarke, Sheet Music Scanner test set".
The real music in photos and survey is from OpenScore's string quartets, which OpenScore released under CC0. The made-up sheets and t1's music are mine. MuseScore (GPL-3.0), Verovio (LGPL-3.0) and Blender (GPL) drew the pages and rendered t1; their licences don't reach what they drew.
- Downloads last month
- 344