Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 1 new columns ({'encode_format'})

This happened while the json dataset builder was generating data using

hf://datasets/puar-playground/MusiXQA/train_qa_simple.json (at revision 15197ac3345f1723e09be195faf93d6f64e20a37)

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1871, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 643, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2293, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2241, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              doc_id: string
              question: string
              answer: string
              encode_format: string
              -- schema metadata --
              pandas: '{"index_columns": [], "column_indexes": [], "columns": [{"name":' + 577
              to
              {'doc_id': Value(dtype='string', id=None), 'question': Value(dtype='string', id=None), 'answer': Value(dtype='string', id=None)}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1431, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 992, in stream_convert_to_parquet
                  builder._prepare_split(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1742, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1873, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 1 new columns ({'encode_format'})
              
              This happened while the json dataset builder was generating data using
              
              hf://datasets/puar-playground/MusiXQA/train_qa_simple.json (at revision 15197ac3345f1723e09be195faf93d6f64e20a37)
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

doc_id
string
question
string
answer
string
0000000
Please extract the pitch and duration of all notes in the 10th bar of the bass clef.
sC#4 eA2 sC#3 qA2~ e.A2 sA2
0000000
Please extract the pitch of all notes in the 10th bar of the bass clef.
C#4 A2 C#3 A2 A2 A2
0000000
Please extract the tempo of all notes in the 10th bar of the bass clef.
s e s q~ e. s
0000000
What is the chord of the 10th bar?
F#m chord
0000000
Please extract all the chords from each bar.
A - Bm - A - E - F#m - Bm - D - C#m - E - F#m - A
0000000
Please extract the pitch and duration of all notes in the 3rd bar of the bass clef.
sE3 e.C#3~ sC#3 sC#3 sA2 sC#3~ qC#3
0000000
Please extract the pitch of all notes in the 3rd bar of the bass clef.
E3 C#3 C#3 C#3 A2 C#3 C#3
0000000
Please extract the tempo of all notes in the 3rd bar of the bass clef.
s e.~ s s s s~ q
0000000
What is the chord of the 3rd bar?
A chord
0000000
Please extract all the chords from each bar.
A - Bm - A - E - F#m - Bm - D - C#m - E - F#m - A
0000000
Please extract the pitch and duration of all notes in the 9th bar of the bass clef.
eG#3 eG#3~ sG#3 eE3 sB2~ sB2 eB2 sB2
0000000
Please extract the pitch of all notes in the 9th bar of the bass clef.
G#3 G#3 G#3 E3 B2 B2 B2 B2
0000000
Please extract the tempo of all notes in the 9th bar of the bass clef.
e e~ s e s~ s e s
0000000
What is the chord of the 9th bar?
E chord
0000000
Please extract all the chords from each bar.
A - Bm - A - E - F#m - Bm - D - C#m - E - F#m - A
0000000
Please extract the pitch and duration of all notes in the 5th bar of the bass clef.
sC#3 eF#3 sA2~ qA2~ e.A2 sF#3
0000000
Please extract the pitch of all notes in the 5th bar of the bass clef.
C#3 F#3 A2 A2 A2 F#3
0000000
Please extract the tempo of all notes in the 5th bar of the bass clef.
s e s~ q~ e. s
0000000
What is the chord of the 5th bar?
F#m chord
0000000
Please extract all the chords from each bar.
A - Bm - A - E - F#m - Bm - D - C#m - E - F#m - A
0000000
Please extract the pitch and duration of all notes in the 5th bar of the bass clef.
sC#3 eF#3 sA2~ qA2~ e.A2 sF#3
0000000
Please extract the pitch of all notes in the 5th bar of the bass clef.
C#3 F#3 A2 A2 A2 F#3
0000000
Please extract the tempo of all notes in the 5th bar of the bass clef.
s e s~ q~ e. s
0000000
What is the chord of the 5th bar?
F#m chord
0000000
Please extract all the chords from each bar.
A - Bm - A - E - F#m - Bm - D - C#m - E - F#m - A
0000000
Please extract the pitch and duration of all notes in the 6th bar of the bass clef.
qD3 eF#3 eF#3 eD3 eB2
0000000
Please extract the pitch of all notes in the 6th bar of the bass clef.
D3 F#3 F#3 D3 B2
0000000
Please extract the tempo of all notes in the 6th bar of the bass clef.
q e e e e
0000000
What is the chord of the 6th bar?
Bm chord
0000000
Please extract all the chords from each bar.
A - Bm - A - E - F#m - Bm - D - C#m - E - F#m - A
0000000
Please extract the pitch and duration of all notes in the 3rd bar of the bass clef.
sE3 e.C#3~ sC#3 sC#3 sA2 sC#3~ qC#3
0000000
Please extract the pitch of all notes in the 3rd bar of the bass clef.
E3 C#3 C#3 C#3 A2 C#3 C#3
0000000
Please extract the tempo of all notes in the 3rd bar of the bass clef.
s e.~ s s s s~ q
0000000
What is the chord of the 3rd bar?
A chord
0000000
Please extract all the chords from each bar.
A - Bm - A - E - F#m - Bm - D - C#m - E - F#m - A
0000000
Please extract the pitch and duration of all notes in the 5th bar of the bass clef.
sC#3 eF#3 sA2~ qA2~ e.A2 sF#3
0000000
Please extract the pitch of all notes in the 5th bar of the bass clef.
C#3 F#3 A2 A2 A2 F#3
0000000
Please extract the tempo of all notes in the 5th bar of the bass clef.
s e s~ q~ e. s
0000000
What is the chord of the 5th bar?
F#m chord
0000000
Please extract all the chords from each bar.
A - Bm - A - E - F#m - Bm - D - C#m - E - F#m - A
0000000
Please extract the pitch and duration of all notes in the 10th bar of the bass clef.
sC#4 eA2 sC#3 qA2~ e.A2 sA2
0000000
Please extract the pitch of all notes in the 10th bar of the bass clef.
C#4 A2 C#3 A2 A2 A2
0000000
Please extract the tempo of all notes in the 10th bar of the bass clef.
s e s q~ e. s
0000000
What is the chord of the 10th bar?
F#m chord
0000000
Please extract all the chords from each bar.
A - Bm - A - E - F#m - Bm - D - C#m - E - F#m - A
0000000
Please extract the pitch and duration of all notes in the 8th bar of the bass clef.
e.G#2 sC#3~ sC#3 sG#2 eG#2~ eG#2 eE3
0000000
Please extract the pitch of all notes in the 8th bar of the bass clef.
G#2 C#3 C#3 G#2 G#2 G#2 E3
0000000
Please extract the tempo of all notes in the 8th bar of the bass clef.
e. s~ s s e~ e e
0000000
What is the chord of the 8th bar?
C#m chord
0000000
Please extract all the chords from each bar.
A - Bm - A - E - F#m - Bm - D - C#m - E - F#m - A
0000001
Please extract the pitch and duration of all notes in the 7th bar of the bass clef.
hC3
0000001
Please extract the pitch of all notes in the 7th bar of the bass clef.
C3
0000001
Please extract the tempo of all notes in the 7th bar of the bass clef.
h
0000001
What might be a good chord for the 7th bar?
Ab chord
0000001
Please extract the pitch and duration of all notes in the 8th bar of the bass clef.
qC3~ sC3 e.Eb3
0000001
Please extract the pitch of all notes in the 8th bar of the bass clef.
C3 C3 Eb3
0000001
Please extract the tempo of all notes in the 8th bar of the bass clef.
q~ s e.
0000001
What might be a good chord for the 8th bar?
Ab chord
0000001
Please extract the pitch and duration of all notes in the 1st bar of the bass clef.
sEb3 sC3 eC3~ qC3
0000001
Please extract the pitch of all notes in the 1st bar of the bass clef.
Eb3 C3 C3 C3
0000001
Please extract the tempo of all notes in the 1st bar of the bass clef.
s s e~ q
0000001
What might be a good chord for the 1st bar?
Ab chord
0000001
Please extract the pitch and duration of all notes in the 2nd bar of the bass clef.
eEb3 sG2 sEb3 e.Eb3 sC4
0000001
Please extract the pitch of all notes in the 2nd bar of the bass clef.
Eb3 G2 Eb3 Eb3 C4
0000001
Please extract the tempo of all notes in the 2nd bar of the bass clef.
e s s e. s
0000001
What might be a good chord for the 2nd bar?
Cm chord
0000001
Please extract the pitch and duration of all notes in the 4th bar of the bass clef.
sF3 sF2 eBb2~ eBb2 eBb2
0000001
Please extract the pitch of all notes in the 4th bar of the bass clef.
F3 F2 Bb2 Bb2 Bb2
0000001
Please extract the tempo of all notes in the 4th bar of the bass clef.
s s e~ e e
0000001
What might be a good chord for the 4th bar?
Bbm chord
0000001
Please extract the pitch and duration of all notes in the 3rd bar of the bass clef.
qC3~ sC3 sF3 eF3
0000001
Please extract the pitch of all notes in the 3rd bar of the bass clef.
C3 C3 F3 F3
0000001
Please extract the tempo of all notes in the 3rd bar of the bass clef.
q~ s s e
0000001
What might be a good chord for the 3rd bar?
Fm chord
0000001
Please extract the pitch and duration of all notes in the 9th bar of the bass clef.
eF3 eF3~ eF3 eAb2
0000001
Please extract the pitch of all notes in the 9th bar of the bass clef.
F3 F3 F3 Ab2
0000001
Please extract the tempo of all notes in the 9th bar of the bass clef.
e e~ e e
0000001
What might be a good chord for the 9th bar?
Db chord
0000001
Please extract the pitch and duration of all notes in the 8th bar of the bass clef.
qC3~ sC3 e.Eb3
0000001
Please extract the pitch of all notes in the 8th bar of the bass clef.
C3 C3 Eb3
0000001
Please extract the tempo of all notes in the 8th bar of the bass clef.
q~ s e.
0000001
What might be a good chord for the 8th bar?
Ab chord
0000001
Please extract the pitch and duration of all notes in the 4th bar of the bass clef.
sF3 sF2 eBb2~ eBb2 eBb2
0000001
Please extract the pitch of all notes in the 4th bar of the bass clef.
F3 F2 Bb2 Bb2 Bb2
0000001
Please extract the tempo of all notes in the 4th bar of the bass clef.
s s e~ e e
0000001
What might be a good chord for the 4th bar?
Bbm chord
0000001
Please extract the pitch and duration of all notes in the 2nd bar of the bass clef.
eEb3 sG2 sEb3 e.Eb3 sC4
0000001
Please extract the pitch of all notes in the 2nd bar of the bass clef.
Eb3 G2 Eb3 Eb3 C4
0000001
Please extract the tempo of all notes in the 2nd bar of the bass clef.
e s s e. s
0000001
What might be a good chord for the 2nd bar?
Cm chord
0000002
Please extract the pitch and duration of all notes in the 4th bar of the treble clef.
e.E5 sG#5~ qG#5 eG#5 eB4
0000002
Please extract the pitch and duration of all notes in the 4th bar of the bass clef.
sE3 e.B3~ eB3 sB2 sG#2~ sG#2 eG#2 sE3
0000002
Please extract the pitch and duration of all notes in the 4th bar for both treble and bass clefs.
treble: e.E5 sG#5~ qG#5 eG#5 eB4 bass: sE3 e.B3~ eB3 sB2 sG#2~ sG#2 eG#2 sE3
0000002
Please extract the pitch of all notes in the 4th bar of the treble clef.
E5 G#5 G#5 G#5 B4
0000002
Please extract the pitch of all notes in the 4th bar of the bass clef.
E3 B3 B3 B2 G#2 G#2 G#2 E3
0000002
Please extract the pitch of all notes in the 4th bar of the treble and bass clefs.
treble: E5 G#5 G#5 G#5 B4 bass: E3 B3 B3 B2 G#2 G#2 G#2 E3
0000002
Please extract the tempo of all notes in the 4th bar of the treble clef.
e. s~ q e e
0000002
Please extract the tempo of all notes in the 4th bar of the bass clef.
s e.~ e s s~ s e s
0000002
Please extract the tempo of all notes in the 4th bar of the treble and bass clefs.
treble: e. s~ q e e bass: s e.~ e s s~ s e s
0000002
What is the chord of the 4th bar?
E chord
End of preview.

MusiXQA 🎡

MusiXQA is a multimodal dataset for evaluating and training music sheet understanding systems. Each data sample is composed of:

  • A scanned music sheet image (.png)
  • Its corresponding MIDI file (.mid)
  • A structured annotation (from metadata.json)
  • Question–Answer (QA) pairs targeting musical structure, semantics, and optical music recognition (OMR) demo1

πŸ“‚ Dataset Structure

MusiXQA/
β”œβ”€β”€ images.tar             # PNG files of music sheets (e.g., 0000000.png)
β”œβ”€β”€ midi.tar               # MIDI files (e.g., 0000000.mid), compressed
β”œβ”€β”€ train_qa_omr.json      # OMR-tasks QA pairs (train split)
β”œβ”€β”€ train_qa_simple.json   # Simple musical info QAs (train split)
β”œβ”€β”€ test_qa_omr.json       # OMR-tasks QA pairs (test split)
β”œβ”€β”€ test_qa_simple.json    # Simple musical info QAs (test split)
β”œβ”€β”€ metadata.json          # Annotation for each document (e.g., key, time, instruments)

🧾 Metadata

The metadata.json file provides comprehensive annotations of the full music sheet content, facilitating research in symbolic music reasoning, score reconstruction, and multimodal alignment with audio or MIDI. demo2

❓ QA Data Format

Each QA file (e.g., train_qa_omr.json) is a list of QA entries like this:

{
    "doc_id": "0086400",
    "question": "Please extract the pitch and duration of all notes in the 2nd bar of the treble clef.",
    "answer": "qB4~ sB4 e.E5~ sE5 sB4 eB4 e.E5 sG#4",
    "encode_format": "beat"
  },

β€’ doc_id: corresponds to a sample in images/, midi/, and metadata.json
β€’ question: natural language query
β€’ answer: ground truth answer
β€’ encode_format: how the input is encoded (e.g., "beat", "note", etc.)

πŸŽ“ Reference

If you use this dataset in your work, please cite it using the following reference:

@article{chen2025musixqa,
  title={MusiXQA: Advancing Visual Music Understanding in Multimodal Large Language Models},
  author={Chen, Jian and Ma, Wenye and Liu, Penghang and Wang, Wei and Song, Tengwei and Li, Ming and Wang, Chenguang and Zhang, Ruiyi and Chen, Changyou},
  journal={arXiv preprint arXiv:2506.23009},
  year={2025}
}
Downloads last month
168

Models trained or fine-tuned on puar-playground/MusiXQA