All models

Sheet Music Transformer

An image-to-sequence Transformer that transcribes polyphonic sheet music images into kern notation.

Documents and OCR · 514 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (19 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
21.4M
Operations
514
Framework
PyTorch
Recurrent
No
Published
ICDAR 2024
Cited by
2 (as of 24 October 2026)
Authors
Antonio Ríos-Vila, Jorge Calvo-Zaragoza, Thierry Paquet
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m20380
Graph hash
023726a5dd1a7a77831f0c883a56e9ef2275424e5840ed96067eae618021e85b
Skeleton hash
2ba21b1e5abf6d8c355063589ef6d5821b443b84265eb029d85775f3ca907fbb
Architecture hash
c9970b885b26567dc9eae03f280e2b621842c2e101b05ee2b6c176aa80a64c5e
Diagram SHA-256
e43231580ae3c3200b8170b324f2bcb8e91c4beeb110d68531d9cbf52c8e4b0b
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

The Sheet Music Transformer (SMT) takes an image of a system of sheet music and generates its transcription as a sequence of symbols. The task is Optical Music Recognition (OMR), the research area concerned with automatically recognizing and transcribing sheet music. The paper presents it as the first end-to-end OMR model designed to transcribe complex musical scores without relying solely on monophonic strategies.

The encoder extracts a feature map from the image, and the decoder is an autoregressive language model that predicts each symbol from that feature map and the symbols generated before it. A two-dimensional positional encoding is added to the feature maps before they are flattened, so that the model stays aware of all the dimensions of the image. The decoder is a Transformer with eight layers, four attention heads and an embedding size of 256 features. According to its model card, the released model pairs a ConvNext vision encoder with a classic Transformer text decoder. Transcriptions use a text-based Humdrum encoding format that the paper refers to as kern.

The paper tests the approach with three different feature extractors. It reports that the two convolution-based versions considerably outperform the earlier method it compares against, particularly on Camera GrandStaff and Quartets, while the Swin-based one attains the worst results. The model card for the GrandStaff checkpoint says its use is limited to transcribing pianoform images.

Key idea. The paper presents the Sheet Music Transformer, an image-to-sequence model based on autoregressive Transformers that transcribes music images beyond monophony without adaptations or specific preprocessing steps.

  • Sheet Music Transformer
  • SMT
  • optical music recognition
  • OMR
  • sheet music transcription
  • polyphonic music transcription
  • kern
  • GrandStaff
  • pianoform
  • image-to-sequence

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{ríosvila2024sheetmusictransformerendtoend,
      title={Sheet Music Transformer: End-To-End Optical Music Recognition Beyond Monophonic Transcription}, 
      author={Antonio Ríos-Vila and Jorge Calvo-Zaragoza and Thierry Paquet},
      year={2024},
      eprint={2402.07596},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2402.07596}, 
}