zkeown commited on
Commit
ff1a54a
·
verified ·
1 Parent(s): 24d80df

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +92 -145
README.md CHANGED
@@ -1,172 +1,121 @@
1
  ---
2
  license: cc-by-4.0
3
  task_categories:
4
- - audio-classification
 
5
  tags:
6
- - drum-transcription
7
- - midi
8
- - velocity
9
- - electronic-drums
10
- - groove
11
  pretty_name: Expanded Groove MIDI Dataset (E-GMD)
12
  size_categories:
13
- - 10K<n<100K
14
- dataset_info:
15
- features:
16
- - name: audio
17
- dtype: audio
18
- - name: filename
19
- dtype: string
20
- - name: drummer
21
- dtype: string
22
- - name: session
23
- dtype: string
24
- - name: bpm
25
- dtype: float64
26
- - name: beat_type
27
- dtype: string
28
- - name: time_signature
29
- dtype: string
30
- - name: duration
31
- dtype: float64
32
- - name: midi
33
- dtype: binary
34
- splits:
35
- - name: train
36
- num_bytes: 77861501194
37
- num_examples: 35217
38
- - name: validation
39
- num_bytes: 5870763089
40
- num_examples: 5031
41
- - name: test
42
- num_bytes: 17548778222
43
- num_examples: 5289
44
- download_size: 131987559338
45
- dataset_size: 101281042505
46
  configs:
47
- - config_name: default
48
- data_files:
49
- - split: train
50
- path: data/train-*
51
- - split: validation
52
- path: data/validation-*
53
- - split: test
54
- path: data/test-*
 
 
 
 
 
 
 
 
55
  ---
56
 
57
  # Expanded Groove MIDI Dataset (E-GMD)
58
 
59
- ## Quick Start
60
 
61
- ```python
62
- from datasets import load_dataset
63
-
64
- # Stream to avoid downloading the entire dataset
65
- ds = load_dataset("schismaudio/e-gmd", streaming=True)
66
-
67
- # Or download locally
68
- ds = load_dataset("schismaudio/e-gmd")
69
- ```
70
-
71
- ## Dataset Description
72
-
73
- The **Expanded Groove MIDI Dataset (E-GMD)** contains 444 hours of aligned MIDI and audio from 43 drum kits on a Roland TD-17 electronic drum kit. The dataset comprises 45,537 sequences derived from 1,059 unique performances by 10 drummers.
74
-
75
- E-GMD is an extension of the [Groove MIDI Dataset (GMD)](https://huggingface.co/datasets/schismaudio/groove-midi-dataset) that re-renders each original performance through 43 different electronic drum kits, providing massive timbral diversity while preserving the original expressive MIDI data. This makes E-GMD particularly valuable for training drum transcription models that need to generalize across different drum sounds.
76
-
77
- ## Dataset Structure
78
-
79
- ### Data Fields
80
-
81
- | Field | Type | Description |
82
- |-------|------|-------------|
83
- | `audio` | `Audio` | WAV audio file |
84
- | `filename` | `string` | Original filename |
85
- | `drummer` | `string` | Anonymized drummer ID |
86
- | `session` | `string` | Recording session identifier |
87
- | `bpm` | `float` | Tempo in beats per minute |
88
- | `beat_type` | `string` | "beat" (steady pattern) or "fill" (fill passage) |
89
- | `time_signature` | `string` | Time signature (e.g., 4-4, 6-8) |
90
- | `duration` | `float` | Duration in seconds |
91
- | `midi` | `bytes` | Raw MIDI data |
92
-
93
- ### Data Splits
94
-
95
- | Split | Examples | Description |
96
- |-------|----------|-------------|
97
- | `train` | ~36,000 | Training set |
98
- | `validation` | ~5,000 | Validation set |
99
- | `test` | ~4,500 | Test set |
100
 
101
- Splits are partitioned by drummer to prevent data leakage — no drummer appears in more than one split.
 
 
 
 
 
 
102
 
103
- ## Class Taxonomy
104
 
105
- The dataset uses raw MIDI pitches from the Roland TD-17 electronic drum kit. The 9 canonical drum classes from the original GMD taxonomy apply:
 
 
 
106
 
107
- | Class | Instrument | MIDI Pitches |
108
- |-------|-----------|-------------|
109
- | 0 | Kick | 36 |
110
- | 1 | Snare (Head) | 38 |
111
- | 2 | Snare (Rim) | 37, 40 |
112
- | 3 | Closed Hi-Hat | 42, 22 |
113
- | 4 | Open Hi-Hat | 46, 26 |
114
- | 5 | Low Tom | 43, 58 |
115
- | 6 | Mid Tom | 47, 45 |
116
- | 7 | High Tom | 50, 48 |
117
- | 8 | Ride / Crash | 49, 51, 55, 57, 52 |
118
 
119
- ## Usage Examples
120
-
121
- ### Load audio and MIDI
122
 
123
  ```python
124
  from datasets import load_dataset
125
 
126
- ds = load_dataset("schismaudio/e-gmd")
127
-
128
- sample = ds["train"][0]
129
- print(f"Drummer: {sample['drummer']}, BPM: {sample['bpm']}")
130
- audio_array = sample["audio"]["array"]
131
- sr = sample["audio"]["sampling_rate"]
132
  ```
133
 
134
- ### Parse MIDI onsets
135
 
136
  ```python
137
- import io
138
- import pretty_midi
139
-
140
- sample = ds["train"][0]
141
- midi = pretty_midi.PrettyMIDI(io.BytesIO(sample["midi"]))
142
- for instrument in midi.instruments:
143
- for note in instrument.notes:
144
- print(f"Time: {note.start:.3f}s, Pitch: {note.pitch}, Velocity: {note.velocity}")
145
  ```
146
 
147
- ## Dataset Creation
148
-
149
- ### Source Data
150
-
151
- E-GMD builds on the original [Groove MIDI Dataset](https://huggingface.co/datasets/schismaudio/groove-midi-dataset) recorded at Google Magenta. The original performances were captured on a Roland TD-11, with MIDI data preserving exact onset times, pitches, and velocities. For E-GMD, each performance was re-rendered through 43 different drum kits on a **Roland TD-17**, multiplying the timbral diversity of the dataset by 43x.
152
-
153
- ### Annotations
154
-
155
- Annotations are the original MIDI data from the electronic drum kit — no manual annotation was needed. The re-rendering process preserved all timing and velocity information from the original performances.
156
-
157
- ## Known Limitations
158
-
159
- - **Synthesized audio only:** All audio is the electronic drum kit's internal sound engine output, not acoustic drums.
160
- - **Shared performances:** The underlying MIDI performances are shared across all 43 kit renderings. Models should be evaluated on held-out drummers, not just held-out kit renderings.
161
- - **Electronic pad dynamics:** Velocity response differs from acoustic drums — pad triggers have fixed dynamic curves.
162
- - **Large dataset size:** At 444 hours, the full dataset requires significant storage. Consider using streaming mode for exploration.
163
-
164
- ## Related Datasets
165
-
166
- 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:
167
-
168
- - [schismaudio/groove-midi-dataset](https://huggingface.co/datasets/schismaudio/groove-midi-dataset) The original 13.6-hour GMD with a single kit
169
- - [schismaudio/stemgmd](https://huggingface.co/datasets/schismaudio/stemgmd) 1,224 hours of isolated per-instrument stems from 10 acoustic kits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
 
171
  ## Citation
172
 
@@ -181,6 +130,4 @@ This dataset is part of the [Drum Audio Datasets](https://huggingface.co/collect
181
 
182
  ## License
183
 
184
- This dataset is released under the [Creative Commons Attribution 4.0 International License (CC-BY 4.0)](https://creativecommons.org/licenses/by/4.0/).
185
-
186
- 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 (Google Magenta).
 
1
  ---
2
  license: cc-by-4.0
3
  task_categories:
4
+ - audio-classification
5
+ - audio-to-audio
6
  tags:
7
+ - drum-transcription
8
+ - midi
9
+ - velocity
10
+ - electronic-drums
11
+ - groove
12
  pretty_name: Expanded Groove MIDI Dataset (E-GMD)
13
  size_categories:
14
+ - 10K<n<100K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  configs:
16
+ - config_name: raw
17
+ data_files:
18
+ - split: train
19
+ path: data/raw/train/*.tar
20
+ - split: validation
21
+ path: data/raw/validation/*.tar
22
+ - split: test
23
+ path: data/raw/test/*.tar
24
+ - config_name: features
25
+ data_files:
26
+ - split: train
27
+ path: data/features/train/*.tar
28
+ - split: validation
29
+ path: data/features/validation/*.tar
30
+ - split: test
31
+ path: data/features/test/*.tar
32
  ---
33
 
34
  # Expanded Groove MIDI Dataset (E-GMD)
35
 
36
+ FLAC-compressed WebDataset mirror of the [E-GMD](https://magenta.tensorflow.org/datasets/e-gmd) dataset with precomputed drum transcription features.
37
 
38
+ ## Dataset Overview
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
+ | Property | Value |
41
+ |---|---|
42
+ | Samples | 45,537 (WAV + MIDI pairs) |
43
+ | Performances | 1,059 unique across 43 drum kits |
44
+ | Drummers | 10 |
45
+ | Audio | 16-bit FLAC, 44100 Hz, mono |
46
+ | Splits | train (35,217) / validation (5,031) / test (5,289) |
47
 
48
+ ## Configs
49
 
50
+ | Config | Content | Est. Size |
51
+ |---|---|---|
52
+ | `raw` | FLAC audio + MIDI per sample | ~70 GB |
53
+ | `features` | Mel specs (128xT) + onset targets (26xT) + velocity targets (26xT) | ~44 GB |
54
 
55
+ ## Loading
 
 
 
 
 
 
 
 
 
 
56
 
57
+ ### Stream Raw Audio + MIDI
 
 
58
 
59
  ```python
60
  from datasets import load_dataset
61
 
62
+ ds = load_dataset("schismaudio/e-gmd", name="raw", split="train", streaming=True)
63
+ for example in ds:
64
+ # audio.flac, midi.mid, metadata.json
65
+ pass
 
 
66
  ```
67
 
68
+ ### Load Features
69
 
70
  ```python
71
+ ds = load_dataset("schismaudio/e-gmd", name="features", split="train")
72
+ for example in ds:
73
+ # mel_spectrogram.npy (128, T), onset_targets.npy (26, T), velocity_targets.npy (26, T), params.json
74
+ pass
 
 
 
 
75
  ```
76
 
77
+ ## Feature Parameters
78
+
79
+ | Parameter | Value |
80
+ |---|---|
81
+ | Sample rate | 16000 Hz |
82
+ | Hop length | 256 |
83
+ | n_mels | 128 |
84
+ | n_classes | 26 (GM drum pitches 35-60) |
85
+ | FPS | 62.5 |
86
+
87
+ ## 26-Class Drum Mapping
88
+
89
+ | Class | MIDI | Instrument |
90
+ |---|---|---|
91
+ | 0 | 35 | Acoustic Bass Drum |
92
+ | 1 | 36 | Bass Drum 1 |
93
+ | 2 | 37 | Side Stick |
94
+ | 3 | 38 | Acoustic Snare |
95
+ | 4 | 39 | Hand Clap |
96
+ | 5 | 40 | Electric Snare |
97
+ | 6 | 41 | Low Floor Tom |
98
+ | 7 | 42 | Closed Hi-Hat |
99
+ | 8 | 43 | High Floor Tom |
100
+ | 9 | 44 | Pedal Hi-Hat |
101
+ | 10 | 45 | Low Tom |
102
+ | 11 | 46 | Open Hi-Hat |
103
+ | 12 | 47 | Low-Mid Tom |
104
+ | 13 | 48 | Hi-Mid Tom |
105
+ | 14 | 49 | Crash Cymbal 1 |
106
+ | 15 | 50 | High Tom |
107
+ | 16 | 51 | Ride Cymbal 1 |
108
+ | 17 | 52 | Chinese Cymbal |
109
+ | 18 | 53 | Ride Bell |
110
+ | 19 | 54 | Tambourine |
111
+ | 20 | 55 | Splash Cymbal |
112
+ | 21 | 56 | Cowbell |
113
+ | 22 | 57 | Crash Cymbal 2 |
114
+ | 23 | 58 | Vibraslap |
115
+ | 24 | 59 | Ride Cymbal 2 |
116
+ | 25 | 60 | Hi Bongo |
117
+
118
+ **Pitch aliases:** MIDI 22 → class 7 (Closed Hi-Hat), MIDI 26 → class 11 (Open Hi-Hat)
119
 
120
  ## Citation
121
 
 
130
 
131
  ## License
132
 
133
+ CC-BY-4.0