Datasets:
Tasks:
Audio Classification
Modalities:
Audio
Languages:
English
Tags:
audio
music-classification
meter-classification
multi-class-classification
multi-label-classification
License:
Commit
Β·
4da394b
1
Parent(s):
8b20842
Refactor README.md to improve dataset structure, description, and metadata organization
Browse files
README.md
CHANGED
@@ -1,60 +1,102 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
-
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
19 |
-
dataset_name = "pianistprogrammer/Meter2800"
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
|
|
31 |
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
-
|
37 |
-
print(f"First example from 'train_4_classes':\n{dataset_train_4_classes[0]}")
|
38 |
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
|
45 |
-
|
46 |
-
dataset_dict = load_dataset(dataset_name, data_files=data_files)
|
47 |
-
print(f"\nLoaded all splits as a DatasetDict: {dataset_dict}")
|
48 |
|
49 |
-
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
|
52 |
|
53 |
-
|
54 |
-
author
|
55 |
-
title
|
56 |
-
year
|
57 |
-
publisher
|
58 |
-
url
|
59 |
}
|
60 |
|
|
|
|
1 |
+
---
|
2 |
+
pretty_name: "Meter2800"
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
tags:
|
6 |
+
- audio
|
7 |
+
- music-classification
|
8 |
+
- meter-classification
|
9 |
+
- multi-class-classification
|
10 |
+
- multi-label-classification
|
11 |
+
license: mit
|
12 |
+
task_categories:
|
13 |
+
- audio-classification
|
14 |
+
- audio-tagging
|
15 |
+
dataset_info:
|
16 |
+
size_categories:
|
17 |
+
- 1K<n<10K
|
18 |
+
source_datasets:
|
19 |
+
- gtzan
|
20 |
+
- mag
|
21 |
+
- own
|
22 |
+
- fma
|
23 |
+
---
|
24 |
|
25 |
+
# Meter2800
|
26 |
|
27 |
+
**Dataset for music genre and meter (rhythm) classification**, combining tracks from GTZAN, MAG, OWN, and FMA.
|
28 |
|
29 |
+
## Dataset Description
|
|
|
30 |
|
31 |
+
Meter2800 is a curated collection of 2,800 `.wav` music audio samples, each annotated with **genre** and **meter** (and optionally `alt_meter`). It supports both:
|
32 |
+
|
33 |
+
- **4-class classification** (e.g., 4 genres),
|
34 |
+
- **2-class classification** (binary genre labeling).
|
35 |
+
|
36 |
+
Split into train/val/test sets with clear metadata in CSV.
|
37 |
+
|
38 |
+
Intended for music information retrieval tasks like rhythmic / structural analysis and genre prediction.
|
39 |
+
|
40 |
+
## Supported Tasks and Usage
|
41 |
+
|
42 |
+
Load the dataset via the `datasets` library with automatic audio decoding:
|
43 |
|
44 |
+
```python
|
45 |
+
from datasets import load_dataset, Audio
|
46 |
+
dataset = load_dataset(
|
47 |
+
"pianistprogrammer/Meter2800",
|
48 |
+
data_files={
|
49 |
+
"train_4": "data_train_4_classes.csv",
|
50 |
+
"val_4": "data_val_4_classes.csv",
|
51 |
+
"test_4": "data_test_4_classes.csv",
|
52 |
+
"train_2": "data_train_2_classes.csv",
|
53 |
+
"val_2": "data_val_2_classes.csv",
|
54 |
+
"test_2": "data_test_2_classes.csv"
|
55 |
+
}
|
56 |
+
)
|
57 |
|
58 |
+
Each entry in the dataset contains:
|
|
|
59 |
|
60 |
+
- **filename**: Path to the audio file.
|
61 |
+
- **label**: Genre label (multi-class or binary, depending on split).
|
62 |
+
- **meter**: Primary meter annotation (e.g., 4/4, 3/4).
|
63 |
+
- **alt_meter**: Optional alternative meter annotation.
|
64 |
+
- **audio**: Audio data as a NumPy array and its sampling rate.
|
65 |
|
66 |
+
The dataset is organized into the following splits:
|
|
|
|
|
67 |
|
68 |
+
- `train_4`, `val_4`, `test_4`: For 4-class genre classification.
|
69 |
+
- `train_2`, `val_2`, `test_2`: For 2-class (binary) genre classification.
|
70 |
+
|
71 |
+
All splits are provided as CSV files referencing the audio files in the corresponding folders (`GTZAN/`, `MAG/`, `OWN/`, `FMA/`).
|
72 |
+
|
73 |
+
Example row in a CSV file:
|
74 |
+
|
75 |
+
| filename | label | meter | alt_meter |
|
76 |
+
|-------------------------|---------|-------|-----------|
|
77 |
+
| GTZAN/blues.00000.wav | blues | 4/4 | 12/8 |
|
78 |
+
|
79 |
+
|
80 |
+
Meter2800/
|
81 |
+
βββ GTZAN/
|
82 |
+
βββ MAG/
|
83 |
+
βββ OWN/
|
84 |
+
βββ FMA/
|
85 |
+
βββ data_train_4_classes.csv
|
86 |
+
βββ data_val_4_classes.csv
|
87 |
+
βββ data_test_4_classes.csv
|
88 |
+
βββ data_train_2_classes.csv
|
89 |
+
βββ data_val_2_classes.csv
|
90 |
+
βββ data_test_2_classes.csv
|
91 |
+
βββ README.md
|
92 |
|
93 |
|
94 |
+
@misc{meter2800_dataset,
|
95 |
+
author = {PianistProgrammer},
|
96 |
+
title = {{Meter2800}: A Dataset for Music Genre and Meter Classification},
|
97 |
+
year = {2025},
|
98 |
+
publisher = {Hugging Face},
|
99 |
+
url = {https://huggingface.co/datasets/pianistprogrammer/Meter2800}
|
100 |
}
|
101 |
|
102 |
+
license: "CC0 1.0 Public Domain"
|