Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -47,4 +47,95 @@ configs:
|
|
| 47 |
path: data/validation-*
|
| 48 |
- split: test
|
| 49 |
path: data/test-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
path: data/validation-*
|
| 48 |
- split: test
|
| 49 |
path: data/test-*
|
| 50 |
+
license: apache-2.0
|
| 51 |
+
task_categories:
|
| 52 |
+
- audio-classification
|
| 53 |
+
language:
|
| 54 |
+
- en
|
| 55 |
+
tags:
|
| 56 |
+
- music
|
| 57 |
+
- audio
|
| 58 |
+
- fma
|
| 59 |
+
- genre-classification
|
| 60 |
+
- mel-spectrogram
|
| 61 |
+
pretty_name: FMA-Small Log-Mel-Spectrograms
|
| 62 |
+
size_categories:
|
| 63 |
+
- 100K<n<1M
|
| 64 |
---
|
| 65 |
+
# FMA - Small: Pre - computed Log - Mel - Spectrograms for Music Genre Classification
|
| 66 |
+
|
| 67 |
+
Pre - processed [FMA - Small](https://github.com/mdeff/fma) dataset containing **155,153** log - mel - spectrogram segments ready for training audio genre classifiers. No audio decoding needed - load and train directly.
|
| 68 |
+
|
| 69 |
+
## Dataset Details
|
| 70 |
+
|
| 71 |
+
| Property | Value |
|
| 72 |
+
|---|---|
|
| 73 |
+
| Source | FMA-Small (8,000 tracks × 30s) |
|
| 74 |
+
| Representation | Log - Mel - Spectrogram |
|
| 75 |
+
| Sample Shape | `(128, 300)` - 128 mel bins × 300 time frames |
|
| 76 |
+
| Sample Rate | 32,000 Hz |
|
| 77 |
+
| Segment Duration | 3 seconds (1.5s overlap → ~19 segments/track) |
|
| 78 |
+
| Classes | 8 genres |
|
| 79 |
+
| Split Strategy | `StratifiedGroupKFold` on `artist_id` (zero artist leakage) |
|
| 80 |
+
|
| 81 |
+
## Features
|
| 82 |
+
|
| 83 |
+
| Column | Type | Description |
|
| 84 |
+
|---|---|---|
|
| 85 |
+
| `mel` | `Array2D(float32)` `(128, 300)` | Log - mel - spectrogram segment |
|
| 86 |
+
| `label` | `ClassLabel` | Genre label `[0–7]` |
|
| 87 |
+
| `track_id` | `int64` | FMA track identifier |
|
| 88 |
+
| `artist_id` | `int64` | FMA artist identifier |
|
| 89 |
+
| `genre` | `string` | Human - readable genre name |
|
| 90 |
+
|
| 91 |
+
## Labels
|
| 92 |
+
|
| 93 |
+
`0` Electronic · `1` Experimental · `2` Folk · `3` Hip - Hop · `4` Instrumental · `5` International · `6` Pop · `7` Rock
|
| 94 |
+
|
| 95 |
+
## Splits
|
| 96 |
+
|
| 97 |
+
| Split | Samples | Ratio |
|
| 98 |
+
|---|---|---|
|
| 99 |
+
| `train` | 99,140 | ~64% |
|
| 100 |
+
| `validation` | 24,807 | ~16% |
|
| 101 |
+
| `test` | 31,206 | ~20% |
|
| 102 |
+
|
| 103 |
+
**No artist appears in more than one split** - enforced via `StratifiedGroupKFold` on `artist_id` to prevent data leakage.
|
| 104 |
+
|
| 105 |
+
## Quick Start
|
| 106 |
+
|
| 107 |
+
```python
|
| 108 |
+
from datasets import load_dataset
|
| 109 |
+
|
| 110 |
+
dd = load_dataset("minhqng/fma-small")
|
| 111 |
+
dd.set_format("torch", columns=["mel", "label"])
|
| 112 |
+
|
| 113 |
+
sample = dd["train"][0]
|
| 114 |
+
mel = sample["mel"] # (128, 300) float32
|
| 115 |
+
label = sample["label"] # int, 0–7
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
## Audio Processing Pipeline
|
| 119 |
+
|
| 120 |
+
Each 30 - second MP3 track was processed as follows:
|
| 121 |
+
|
| 122 |
+
```
|
| 123 |
+
MP3 → decode (PyAV) → mono → resample 32kHz → segment 3s (50% overlap)
|
| 124 |
+
→ MelSpectrogram (n_fft=1024, hop=320, 128 bins, Slaney norm)
|
| 125 |
+
→ log(mel + 1e-9) → truncate to 300 frames → (128, 300)
|
| 126 |
+
```
|
| 127 |
+
|
| 128 |
+
Silent/corrupt tracks and segments were removed before dataset creation.
|
| 129 |
+
|
| 130 |
+
## Citation
|
| 131 |
+
|
| 132 |
+
If you use this dataset, please cite the original FMA paper:
|
| 133 |
+
|
| 134 |
+
```bibtex
|
| 135 |
+
@inproceedings{defferrard2017fma,
|
| 136 |
+
title = {{FMA}: A Dataset for Music Analysis},
|
| 137 |
+
author = {Defferrard, Micha\"el and Benzi, Kirell and Vandergheynst, Pierre and Bresson, Xavier},
|
| 138 |
+
booktitle = {18th International Society for Music Information Retrieval Conference (ISMIR)},
|
| 139 |
+
year = {2017},
|
| 140 |
+
}
|
| 141 |
+
```
|