zkeown commited on
Commit
777ff57
·
verified ·
1 Parent(s): dea5ce8

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +201 -0
README.md ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - audio-classification
5
+ tags:
6
+ - drums
7
+ - percussion
8
+ - drum-transcription
9
+ - source-separation
10
+ - midi
11
+ - stems
12
+ - multi-kit
13
+ - acoustic-drums
14
+ pretty_name: "StemGMD"
15
+ size_categories:
16
+ - 10K<n<100K
17
+ ---
18
+
19
+ # StemGMD
20
+
21
+ ## Quick Start
22
+
23
+ ```python
24
+ from huggingface_hub import snapshot_download
25
+
26
+ # Download the full dataset (~1.13TB extracted)
27
+ path = snapshot_download(
28
+ repo_id="schismaudio/stemgmd",
29
+ repo_type="dataset",
30
+ )
31
+ ```
32
+
33
+ ## Dataset Description
34
+
35
+ **StemGMD** is a large-scale multi-kit drum dataset providing 1,224 hours of isolated per-instrument drum stems with aligned MIDI annotations. Created by Ferroni et al. (2023), StemGMD takes the same 1,150 MIDI performances from the [Groove MIDI Dataset (GMD)](https://huggingface.co/datasets/schismaudio/groove-midi-dataset) and renders each one through **10 professional acoustic drum kits** using high-quality sample libraries.
36
+
37
+ Unlike [E-GMD](https://huggingface.co/datasets/schismaudio/e-gmd) (which provides a single mixed drum audio per kit), StemGMD provides **isolated per-instrument stems** -- kick, snare, hi-hat, toms, and cymbals are each rendered as separate audio files. This makes StemGMD uniquely valuable for both drum transcription and drum source separation research, enabling models to learn from clean, instrument-level supervision.
38
+
39
+ ## Dataset Structure
40
+
41
+ ### Directory Layout
42
+
43
+ ```
44
+ StemGMD/
45
+ drummer1/
46
+ session1/
47
+ 1_rock_80_beat_4-4/
48
+ kit_00/
49
+ kick.wav
50
+ snare.wav
51
+ hihat.wav
52
+ tom_low.wav
53
+ tom_mid.wav
54
+ tom_high.wav
55
+ crash.wav
56
+ ride.wav
57
+ mix.wav
58
+ kit_01/
59
+ ...
60
+ ...
61
+ kit_09/
62
+ ...
63
+ midi/
64
+ file.mid
65
+ drummer2/
66
+ ...
67
+ eval_session/
68
+ ...
69
+ ```
70
+
71
+ ### Data Fields
72
+
73
+ | Field | Type | Description |
74
+ |-------|------|-------------|
75
+ | `kick.wav` | Audio | Isolated kick drum stem (44.1kHz WAV) |
76
+ | `snare.wav` | Audio | Isolated snare drum stem |
77
+ | `hihat.wav` | Audio | Isolated hi-hat stem (open + closed) |
78
+ | `tom_low.wav` | Audio | Isolated low tom stem |
79
+ | `tom_mid.wav` | Audio | Isolated mid tom stem |
80
+ | `tom_high.wav` | Audio | Isolated high tom stem |
81
+ | `crash.wav` | Audio | Isolated crash cymbal stem |
82
+ | `ride.wav` | Audio | Isolated ride cymbal stem |
83
+ | `mix.wav` | Audio | Full drum mix (sum of all stems) |
84
+ | `file.mid` | MIDI | Ground-truth MIDI with onset times, pitches, and velocities |
85
+
86
+ ### Data Splits
87
+
88
+ Splits follow the same drummer-based partitioning as GMD (no drummer overlap between splits). Each split is multiplied by 10 kits.
89
+
90
+ | Split | Performances | Total Recordings | Description |
91
+ |-------|-------------|-----------------|-------------|
92
+ | `train` | ~800 | ~8,000 | Training set (~800 MIDI x 10 kits) |
93
+ | `validation` | ~200 | ~2,000 | Validation set |
94
+ | `test` | ~150 | ~1,500 | Test set |
95
+
96
+ ### Audio Format
97
+
98
+ - **Sample rate**: 44.1 kHz
99
+ - **Format**: WAV (uncompressed)
100
+ - **Stems per kit rendering**: Up to 9 (8 instrument stems + 1 mix)
101
+
102
+ ## Drum Kits
103
+
104
+ StemGMD uses 10 professional acoustic drum sample libraries spanning a range of timbral characters:
105
+
106
+ | Kit ID | Description |
107
+ |--------|------------|
108
+ | 0--9 | 10 distinct acoustic drum kits from commercial sample libraries |
109
+
110
+ Each kit provides a different timbral character (bright/dark, tight/open, studio/live), ensuring diverse training data for generalization across drum sounds.
111
+
112
+ ## Usage Examples
113
+
114
+ ### Load isolated stems for one rendering
115
+
116
+ ```python
117
+ import soundfile as sf
118
+ from pathlib import Path
119
+
120
+ track_dir = Path("StemGMD/drummer1/session1/1_rock_80_beat_4-4/kit_00")
121
+
122
+ stems = {}
123
+ for stem_file in track_dir.glob("*.wav"):
124
+ audio, sr = sf.read(stem_file)
125
+ stems[stem_file.stem] = audio
126
+ print(f"{stem_file.stem}: {audio.shape[0] / sr:.1f}s, sr={sr}")
127
+ ```
128
+
129
+ ### Compare the same performance across kits
130
+
131
+ ```python
132
+ import soundfile as sf
133
+ from pathlib import Path
134
+
135
+ perf_dir = Path("StemGMD/drummer1/session1/1_rock_80_beat_4-4")
136
+
137
+ for kit_dir in sorted(perf_dir.glob("kit_*")):
138
+ mix, sr = sf.read(kit_dir / "mix.wav")
139
+ print(f"{kit_dir.name}: {mix.shape[0] / sr:.1f}s, rms={((mix**2).mean()**0.5):.4f}")
140
+ ```
141
+
142
+ ### Parse MIDI onsets with stem-level alignment
143
+
144
+ ```python
145
+ import pretty_midi
146
+
147
+ midi = pretty_midi.PrettyMIDI("StemGMD/drummer1/session1/1_rock_80_beat_4-4/midi/file.mid")
148
+ for instrument in midi.instruments:
149
+ for note in instrument.notes:
150
+ print(f"Time: {note.start:.3f}s, Pitch: {note.pitch}, Velocity: {note.velocity}")
151
+ ```
152
+
153
+ ## Dataset Creation
154
+
155
+ ### Source Data
156
+
157
+ StemGMD builds on the [Groove MIDI Dataset](https://huggingface.co/datasets/schismaudio/groove-midi-dataset), which contains 1,150 MIDI performances recorded by 10 professional and semi-professional drummers on a Roland TD-11 electronic drum kit at Google Magenta's recording studio.
158
+
159
+ ### Rendering Pipeline
160
+
161
+ Each MIDI performance was rendered through **10 professional acoustic drum sample libraries**. Rather than rendering a single mixed audio file (as in E-GMD), StemGMD renders each drum instrument as an isolated audio stem. This is accomplished by routing each MIDI pitch class to its corresponding sample in the drum kit and rendering them independently.
162
+
163
+ All audio was rendered at **44.1kHz** (CD quality), a significant improvement over E-GMD's 16kHz, preserving the full frequency range of cymbals and transients that are critical for drum transcription.
164
+
165
+ ### Annotations
166
+
167
+ Annotations are inherited directly from GMD: the raw MIDI output from the Roland TD-11 electronic drum kit. Since the audio is synthesized from MIDI, alignment is exact. The same MIDI annotations apply to all 10 kit renderings.
168
+
169
+ ## Known Limitations
170
+
171
+ - **Synthesized audio only:** Audio is rendered from sample libraries, not recorded from live drumming. While the sample libraries are high-quality, the audio lacks the natural variability of live acoustic recordings (room ambience, microphone bleed, stick-to-head interaction).
172
+ - **Sample-based rendering:** Each hit triggers a single sample. Real drums produce continuous timbral variation based on strike position, velocity curves, and sympathetic resonance that sample libraries only partially capture.
173
+ - **Fixed MIDI performances:** The underlying 1,150 MIDI performances are identical across all kits. The dataset provides timbral diversity but not additional performance diversity.
174
+ - **Electronic pad dynamics:** Velocity values come from Roland TD-11 pad triggers, which have fixed dynamic curves that differ from acoustic drum stick-on-head dynamics.
175
+ - **Large size:** At 1.13TB extracted, the dataset requires significant storage. Consider streaming or partial downloads for initial experimentation.
176
+
177
+ ## Related Datasets
178
+
179
+ This dataset is part of the [Drum Audio Datasets](https://huggingface.co/collections/schismaudio/drum-audio-datasets) collection by [schismaudio](https://huggingface.co/schismaudio). Related datasets:
180
+
181
+ - [schismaudio/groove-midi-dataset](https://huggingface.co/datasets/schismaudio/groove-midi-dataset) -- 13.6 hours: The original GMD with 1,150 MIDI performances from a single Roland TD-11 kit
182
+ - [schismaudio/e-gmd](https://huggingface.co/datasets/schismaudio/e-gmd) -- 444 hours: GMD performances re-rendered with 43 different kits (mixed audio only, no isolated stems)
183
+ - [schismaudio/star-drums](https://huggingface.co/datasets/schismaudio/star-drums) -- Real-world drum recordings with MIDI annotations
184
+ - [schismaudio/slakh2100](https://huggingface.co/datasets/schismaudio/slakh2100) -- 2,100 multi-track synthesized music with isolated instrument stems
185
+
186
+ ## Citation
187
+
188
+ ```bibtex
189
+ @inproceedings{ferroni2023stemgmd,
190
+ title={{StemGMD}: A Large-Scale Multi-Kit Audio Dataset for Automatic Drum Transcription},
191
+ author={Ferroni, Marcello and Lee, Jongho and Fazekas, Gy{\"o}rgy and Sandler, Mark},
192
+ booktitle={Proceedings of the International Society for Music Information Retrieval Conference (ISMIR)},
193
+ year={2023}
194
+ }
195
+ ```
196
+
197
+ ## License
198
+
199
+ This dataset is released under the [Creative Commons Attribution 4.0 International License (CC-BY 4.0)](https://creativecommons.org/licenses/by/4.0/).
200
+
201
+ You are free to share and adapt this dataset for any purpose, including commercial use, as long as you give appropriate credit to the original authors (Ferroni et al., Queen Mary University of London).