Datasets:

Formats:
arrow
Libraries:
Datasets
License:
admin commited on
Commit
bee3815
·
1 Parent(s): 41c507f
CNPM.py DELETED
@@ -1,190 +0,0 @@
1
- import os
2
- import random
3
- import hashlib
4
- import datasets
5
- import pandas as pd
6
-
7
-
8
- _SYSTEM_TONIC = [
9
- "C",
10
- "#C/bD",
11
- "D",
12
- "#D/bE",
13
- "E",
14
- "F",
15
- "#F/bG",
16
- "G",
17
- "#G/bA",
18
- "A",
19
- "#A/bB",
20
- "B",
21
- ]
22
-
23
- _PATTERN = ["Gong", "Shang", "Jue", "Zhi", "Yu"]
24
-
25
- _TYPE = [
26
- "Pentatonic",
27
- "Hexatonic_Qingjue",
28
- "Hexatonic_Biangong",
29
- "Heptatonic_Yayue",
30
- "Heptatonic_Qingyue",
31
- "Heptatonic_Yanyue",
32
- ]
33
-
34
- _HOMEPAGE = f"https://www.modelscope.cn/datasets/ccmusic-database/{os.path.basename(__file__)[:-3]}"
35
-
36
- _DOMAIN = f"{_HOMEPAGE}/resolve/master/data"
37
-
38
- _URLS = {
39
- "audio": f"{_DOMAIN}/audio.zip",
40
- "mel": f"{_DOMAIN}/mel.zip",
41
- "eval": f"{_DOMAIN}/eval.zip",
42
- "label": f"{_DOMAIN}/label.csv",
43
- }
44
-
45
-
46
- class CNPM(datasets.GeneratorBasedBuilder):
47
- def _info(self):
48
- return datasets.DatasetInfo(
49
- features=(
50
- datasets.Features(
51
- {
52
- "audio": datasets.Audio(sampling_rate=44100),
53
- "mel": datasets.Image(),
54
- "system": datasets.features.ClassLabel(names=_SYSTEM_TONIC),
55
- "tonic": datasets.features.ClassLabel(names=_SYSTEM_TONIC),
56
- "pattern": datasets.features.ClassLabel(names=_PATTERN),
57
- "type": datasets.features.ClassLabel(names=_TYPE),
58
- "mode": datasets.Value("string"),
59
- }
60
- )
61
- if self.config.name == "default"
62
- else (
63
- datasets.Features(
64
- {
65
- "mel": datasets.Image(),
66
- "cqt": datasets.Image(),
67
- "chroma": datasets.Image(),
68
- "label": datasets.features.ClassLabel(names=_PATTERN),
69
- }
70
- )
71
- )
72
- ),
73
- homepage=_HOMEPAGE,
74
- license="CC-BY-NC-ND",
75
- version="1.2.0",
76
- )
77
-
78
- def _str2md5(self, original_string: str):
79
- md5_obj = hashlib.md5()
80
- md5_obj.update(original_string.encode("utf-8"))
81
- return md5_obj.hexdigest()
82
-
83
- def _val_of_key(self, labels: pd.DataFrame, key: str, col: str):
84
- try:
85
- return labels.loc[key][col]
86
- except KeyError:
87
- return ""
88
-
89
- def _split_generators(self, dl_manager):
90
- label_file = dl_manager.download(_URLS["label"])
91
- labels = pd.read_csv(label_file, index_col="文件名/File Name", encoding="gbk")
92
- if self.config.name == "default":
93
- files = {}
94
- dataset = []
95
- audio_files = dl_manager.download_and_extract(_URLS["audio"])
96
- for fpath in dl_manager.iter_files([audio_files]):
97
- fname: str = os.path.basename(fpath)
98
- if fname.endswith(".wav") or fname.endswith(".mp3"):
99
- song_id = self._str2md5(fname.split(".")[0])
100
- files[song_id] = {"audio": fpath}
101
-
102
- mel_files = dl_manager.download_and_extract(_URLS["mel"])
103
- for fpath in dl_manager.iter_files([mel_files]):
104
- fname = os.path.basename(fpath)
105
- if fname.endswith(".png"):
106
- song_id = self._str2md5(fname.split(".")[0])
107
- files[song_id]["mel"] = fpath
108
-
109
- for path in files.values():
110
- fname = os.path.basename(path["audio"])
111
- dataset.append(
112
- {
113
- "audio": path["audio"],
114
- "mel": path["mel"],
115
- "system": _SYSTEM_TONIC[
116
- int(self._val_of_key(labels, fname, "同宫系统/System"))
117
- ],
118
- "tonic": _SYSTEM_TONIC[
119
- int(self._val_of_key(labels, fname, "主音音名/Tonic"))
120
- ],
121
- "pattern": _PATTERN[
122
- int(self._val_of_key(labels, fname, "样式/Pattern"))
123
- ],
124
- "type": _TYPE[
125
- int(self._val_of_key(labels, fname, "种类/Type"))
126
- ],
127
- "mode": self._val_of_key(labels, fname, "调式全称/Mode Name"),
128
- }
129
- )
130
-
131
- random.shuffle(dataset)
132
- return [
133
- datasets.SplitGenerator(
134
- name=datasets.Split.TRAIN,
135
- gen_kwargs={"files": dataset},
136
- ),
137
- ]
138
-
139
- else:
140
- files = {key: [] for key in _PATTERN}
141
- data_files = dl_manager.download_and_extract(_URLS["eval"])
142
- for fpath in dl_manager.iter_files([data_files]):
143
- if fpath.endswith(".jpg") and "mel" in fpath:
144
- fname = os.path.basename(fpath).rsplit("_", 1)[0]
145
- label = _PATTERN[
146
- int(self._val_of_key(labels, fname, "样式/Pattern"))
147
- ]
148
- files[label].append(
149
- {
150
- "mel": fpath,
151
- "cqt": fpath.replace("mel", "cqt"),
152
- "chroma": fpath.replace("mel", "chroma"),
153
- "label": label,
154
- }
155
- )
156
-
157
- trainset, validset, testset = [], [], []
158
- for cls in files:
159
- random.shuffle(files[cls])
160
- count = len(files[cls])
161
- if count < 3:
162
- raise ValueError(f"Class {cls} has items < 3 !")
163
-
164
- p10 = max(count // 10, 1)
165
- p20 = p10 * 2
166
- trainset += files[cls][p20:]
167
- validset += files[cls][p10:p20]
168
- testset += files[cls][:p10]
169
-
170
- random.shuffle(trainset)
171
- random.shuffle(validset)
172
- random.shuffle(testset)
173
- return [
174
- datasets.SplitGenerator(
175
- name=datasets.Split.TRAIN,
176
- gen_kwargs={"files": trainset},
177
- ),
178
- datasets.SplitGenerator(
179
- name=datasets.Split.VALIDATION,
180
- gen_kwargs={"files": validset},
181
- ),
182
- datasets.SplitGenerator(
183
- name=datasets.Split.TEST,
184
- gen_kwargs={"files": testset},
185
- ),
186
- ]
187
-
188
- def _generate_examples(self, files):
189
- for i, item in enumerate(files):
190
- yield i, item
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -11,9 +11,68 @@ tags:
11
  pretty_name: Chinese National Pentatonic Mode Dataset
12
  size_categories:
13
  - n<1K
14
- viewer: false
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  ---
16
- If you want to view the dataset, please visit [here](https://www.modelscope.cn/datasets/ccmusic-database/CNPM/dataPeview)
17
  # Dataset Card for Chinese National Pentatonic Mode Dataset
18
  ## Original Content
19
  The dataset is initially created by [[1]](https://archives.ismir.net/ismir2022/paper/000041.pdf). It is then expanded and used for automatic Chinese national pentatonic mode recognition by [[2]](https://kns.cnki.net/kcms2/article/abstract?v=lD5CuVSaeOtw0E2oWliKSMrLiLDt9iwvkwoTgSclPspwUECyt4uNZ6T7DCLlfwMqohXCQXkFzf_XjAUOQ3CAkhPqNj20H8eG9UfUVuHEey0x7Kqp32fMlJiM9xuPtdVMvC1PB2qW0qI=&uniplatform=NZKPT&src=copy), to which readers can refer for more details along with a brief introduction to the modern theory of Chinese pentatonic mode. This includes the definition of "system", "tonic", "pattern", and "type," which will be included in one unified table during our integration process as described below. The original dataset includes audio recordings and annotations of five modes of Chinese music, encompassing the _Gong (宫), Shang (商), Jue (角), Zhi (徵), and Yu (羽)_ modes. The total recording number is 287.
@@ -21,7 +80,7 @@ The dataset is initially created by [[1]](https://archives.ismir.net/ismir2022/p
21
  ## Integration
22
  Similar to the Guzheng Tech99 dataset in Section 1, the labels in this dataset were initially stored in a separate CSV file, which led to certain usability issues. Through our integration, labels are integrated with audio data into a single dictionary. After the integration, the data structure consists of seven columns: the first and second columns denote the audio recording (sampled at 44,100 Hz) and mel spectrogram. The subsequent columns represent the system, tonic, pattern, and type of the musical piece, respectively. The final column contains an additional Chinese name of the mode. The total recording number remains at 287, and the total duration is 858.63 minutes. The average duration is 179.51 seconds.
23
 
24
- We have constructed the [default subset](#default-subset) of this integrated version of the dataset, and its data structure can be viewed in the [viewer](https://www.modelscope.cn/datasets/ccmusic-database/CNPM/dataPeview). As this dataset has been cited and used in published articles, no further eval subset needs to be constructed for evaluation. Because the default subset is multi-labelled, it is difficult to maintain the integrity of labels in the split for all label columns, hence only a single split for the training set is provided. Users can perform their own splits on specified columns according to their specific downstream tasks. Building on the default subset, we segmented the audio into 20-second slices and used zero padding to complete segments shorter than 20 seconds. The audio was then converted into mel, CQT, and chroma spectrograms. This process resulted in the construction of the [eval subset](#eval-subset) for dataset evaluation experiments.
25
 
26
  ## Statistics
27
  In this part, we provide statistics for the "pattern" in the dataset, which includes five categories: _Gong, Shang, Jue, Zhi, and Yu_. Our evaluation is also conducted on "pattern." In a Western context, identifying these patterns is analogous to identifying a musical mode, such as determining whether a piece of music is in the Dorian mode or Lydian mode. These patterns form the core of modern Chinese pentatonic mode theory.
@@ -162,7 +221,7 @@ for item in ds["test"]:
162
 
163
  ## Maintenance
164
  ```bash
165
- git clone [email protected]:datasets/ccmusic-database/CNPM
166
  cd CNPM
167
  ```
168
 
 
11
  pretty_name: Chinese National Pentatonic Mode Dataset
12
  size_categories:
13
  - n<1K
14
+ dataset_info:
15
+ - config_name: default
16
+ features:
17
+ - name: audio
18
+ dtype:
19
+ audio:
20
+ sampling_rate: 44100
21
+ - name: mel
22
+ dtype: image
23
+ - name: system
24
+ dtype: int8
25
+ - name: tonic
26
+ dtype: int8
27
+ - name: pattern
28
+ dtype: int8
29
+ - name: type
30
+ dtype: int8
31
+ - name: mode
32
+ dtype: string
33
+ splits:
34
+ - name: train
35
+ num_bytes: 116273
36
+ num_examples: 287
37
+ download_size: 2876503790
38
+ dataset_size: 116273
39
+ - config_name: eval
40
+ features:
41
+ - name: mel
42
+ dtype: image
43
+ - name: cqt
44
+ dtype: image
45
+ - name: chroma
46
+ dtype: image
47
+ - name: label
48
+ dtype: int8
49
+ splits:
50
+ - name: train
51
+ num_bytes: 1294328
52
+ num_examples: 2182
53
+ - name: validation
54
+ num_bytes: 161246
55
+ num_examples: 271
56
+ - name: test
57
+ num_bytes: 161378
58
+ num_examples: 271
59
+ download_size: 328570384
60
+ dataset_size: 1616952
61
+ configs:
62
+ - config_name: default
63
+ data_files:
64
+ - split: train
65
+ path: default/train/data-*.arrow
66
+ - config_name: eval
67
+ data_files:
68
+ - split: train
69
+ path: eval/train/data-*.arrow
70
+ - split: validation
71
+ path: eval/validation/data-*.arrow
72
+ - split: test
73
+ path: eval/test/data-*.arrow
74
  ---
75
+
76
  # Dataset Card for Chinese National Pentatonic Mode Dataset
77
  ## Original Content
78
  The dataset is initially created by [[1]](https://archives.ismir.net/ismir2022/paper/000041.pdf). It is then expanded and used for automatic Chinese national pentatonic mode recognition by [[2]](https://kns.cnki.net/kcms2/article/abstract?v=lD5CuVSaeOtw0E2oWliKSMrLiLDt9iwvkwoTgSclPspwUECyt4uNZ6T7DCLlfwMqohXCQXkFzf_XjAUOQ3CAkhPqNj20H8eG9UfUVuHEey0x7Kqp32fMlJiM9xuPtdVMvC1PB2qW0qI=&uniplatform=NZKPT&src=copy), to which readers can refer for more details along with a brief introduction to the modern theory of Chinese pentatonic mode. This includes the definition of "system", "tonic", "pattern", and "type," which will be included in one unified table during our integration process as described below. The original dataset includes audio recordings and annotations of five modes of Chinese music, encompassing the _Gong (宫), Shang (商), Jue (角), Zhi (徵), and Yu (羽)_ modes. The total recording number is 287.
 
80
  ## Integration
81
  Similar to the Guzheng Tech99 dataset in Section 1, the labels in this dataset were initially stored in a separate CSV file, which led to certain usability issues. Through our integration, labels are integrated with audio data into a single dictionary. After the integration, the data structure consists of seven columns: the first and second columns denote the audio recording (sampled at 44,100 Hz) and mel spectrogram. The subsequent columns represent the system, tonic, pattern, and type of the musical piece, respectively. The final column contains an additional Chinese name of the mode. The total recording number remains at 287, and the total duration is 858.63 minutes. The average duration is 179.51 seconds.
82
 
83
+ We have constructed the [default subset](#default-subset) of this integrated version of the dataset, and its data structure can be viewed in the [viewer](https://huggingface.co/datasets/ccmusic-database/CNPM/viewer). As this dataset has been cited and used in published articles, no further eval subset needs to be constructed for evaluation. Because the default subset is multi-labelled, it is difficult to maintain the integrity of labels in the split for all label columns, hence only a single split for the training set is provided. Users can perform their own splits on specified columns according to their specific downstream tasks. Building on the default subset, we segmented the audio into 20-second slices and used zero padding to complete segments shorter than 20 seconds. The audio was then converted into mel, CQT, and chroma spectrograms. This process resulted in the construction of the [eval subset](#eval-subset) for dataset evaluation experiments.
84
 
85
  ## Statistics
86
  In this part, we provide statistics for the "pattern" in the dataset, which includes five categories: _Gong, Shang, Jue, Zhi, and Yu_. Our evaluation is also conducted on "pattern." In a Western context, identifying these patterns is analogous to identifying a musical mode, such as determining whether a piece of music is in the Dorian mode or Lydian mode. These patterns form the core of modern Chinese pentatonic mode theory.
 
221
 
222
  ## Maintenance
223
  ```bash
224
+ GIT_LFS_SKIP_SMUDGE=1 git clone [email protected]:datasets/ccmusic-database/CNPM
225
  cd CNPM
226
  ```
227
 
default/dataset_dict.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"splits": ["train"]}
default/train/data-00000-of-00007.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b4c3d64e2e2d1aacc011afe5afd1f8400a4cbcfe34daac74a91bd73da2f5055
3
+ size 411865296
default/train/data-00001-of-00007.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb624b9b80807190c9a5b06ce027cf4b3a82ae79c5e116f7f41523f98f463e3a
3
+ size 382625008
default/train/data-00002-of-00007.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82e8b5fdfbde7b728a6eaab38dce15ca6b6838c09489c5fd6821c0b76a3b6fd5
3
+ size 488776792
default/train/data-00003-of-00007.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b52c9c7500a6e80487c8e1a84beec3ca08acb110defeaa48af7bb087528cbcf
3
+ size 478868984
default/train/data-00004-of-00007.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4408cd28b0200e5eff004b8f530fd00de291e1e00c3ae56b25bd08fdb4a932a8
3
+ size 340190064
default/train/data-00005-of-00007.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94351dbc8b22c5cf7fb05d49079be8315bfdc58c7f90ec4aad05de817fe322c4
3
+ size 379055680
default/train/data-00006-of-00007.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea4fccd685e9e2b1c4a557856bec348821fdff66e1683db53d52728f3f10f0c6
3
+ size 551847080
default/train/dataset_info.json ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "builder_name": "cnpm",
3
+ "citation": "",
4
+ "config_name": "default",
5
+ "dataset_name": "cnpm",
6
+ "dataset_size": 116273,
7
+ "description": "",
8
+ "download_checksums": {
9
+ "https://www.modelscope.cn/datasets/ccmusic-database/CNPM/resolve/master/data/label.csv": {
10
+ "num_bytes": 22642,
11
+ "checksum": null
12
+ },
13
+ "https://www.modelscope.cn/datasets/ccmusic-database/CNPM/resolve/master/data/audio.zip": {
14
+ "num_bytes": 2110484165,
15
+ "checksum": null
16
+ },
17
+ "https://www.modelscope.cn/datasets/ccmusic-database/CNPM/resolve/master/data/mel.zip": {
18
+ "num_bytes": 765996983,
19
+ "checksum": null
20
+ }
21
+ },
22
+ "download_size": 2876503790,
23
+ "features": {
24
+ "audio": {
25
+ "sampling_rate": 44100,
26
+ "_type": "Audio"
27
+ },
28
+ "mel": {
29
+ "_type": "Image"
30
+ },
31
+ "system": {
32
+ "names": [
33
+ "C",
34
+ "#C/bD",
35
+ "D",
36
+ "#D/bE",
37
+ "E",
38
+ "F",
39
+ "#F/bG",
40
+ "G",
41
+ "#G/bA",
42
+ "A",
43
+ "#A/bB",
44
+ "B"
45
+ ],
46
+ "_type": "ClassLabel"
47
+ },
48
+ "tonic": {
49
+ "names": [
50
+ "C",
51
+ "#C/bD",
52
+ "D",
53
+ "#D/bE",
54
+ "E",
55
+ "F",
56
+ "#F/bG",
57
+ "G",
58
+ "#G/bA",
59
+ "A",
60
+ "#A/bB",
61
+ "B"
62
+ ],
63
+ "_type": "ClassLabel"
64
+ },
65
+ "pattern": {
66
+ "names": [
67
+ "Gong",
68
+ "Shang",
69
+ "Jue",
70
+ "Zhi",
71
+ "Yu"
72
+ ],
73
+ "_type": "ClassLabel"
74
+ },
75
+ "type": {
76
+ "names": [
77
+ "Pentatonic",
78
+ "Hexatonic_Qingjue",
79
+ "Hexatonic_Biangong",
80
+ "Heptatonic_Yayue",
81
+ "Heptatonic_Qingyue",
82
+ "Heptatonic_Yanyue"
83
+ ],
84
+ "_type": "ClassLabel"
85
+ },
86
+ "mode": {
87
+ "dtype": "string",
88
+ "_type": "Value"
89
+ }
90
+ },
91
+ "homepage": "https://www.modelscope.cn/datasets/ccmusic-database/CNPM",
92
+ "license": "CC-BY-NC-ND",
93
+ "size_in_bytes": 2876620063,
94
+ "splits": {
95
+ "train": {
96
+ "name": "train",
97
+ "num_bytes": 116273,
98
+ "num_examples": 287,
99
+ "dataset_name": "cnpm"
100
+ }
101
+ },
102
+ "version": {
103
+ "version_str": "0.0.0",
104
+ "major": 0,
105
+ "minor": 0,
106
+ "patch": 0
107
+ }
108
+ }
default/train/state.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_data_files": [
3
+ {
4
+ "filename": "data-00000-of-00007.arrow"
5
+ },
6
+ {
7
+ "filename": "data-00001-of-00007.arrow"
8
+ },
9
+ {
10
+ "filename": "data-00002-of-00007.arrow"
11
+ },
12
+ {
13
+ "filename": "data-00003-of-00007.arrow"
14
+ },
15
+ {
16
+ "filename": "data-00004-of-00007.arrow"
17
+ },
18
+ {
19
+ "filename": "data-00005-of-00007.arrow"
20
+ },
21
+ {
22
+ "filename": "data-00006-of-00007.arrow"
23
+ }
24
+ ],
25
+ "_fingerprint": "c17a48bfe9557978",
26
+ "_format_columns": null,
27
+ "_format_kwargs": {},
28
+ "_format_type": null,
29
+ "_output_all_columns": false,
30
+ "_split": "train"
31
+ }
eval/dataset_dict.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"splits": ["train", "validation", "test"]}
eval/test/data-00000-of-00001.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b08a6994b53fdcca5a215edfb8ad55ee38a703146612eb3d5ad95bf34827c253
3
+ size 34235752
eval/test/dataset_info.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "builder_name": "cnpm",
3
+ "citation": "",
4
+ "config_name": "eval",
5
+ "dataset_name": "cnpm",
6
+ "dataset_size": 1616952,
7
+ "description": "",
8
+ "download_checksums": {
9
+ "https://www.modelscope.cn/datasets/ccmusic-database/CNPM/resolve/master/data/label.csv": {
10
+ "num_bytes": 22642,
11
+ "checksum": null
12
+ },
13
+ "https://www.modelscope.cn/datasets/ccmusic-database/CNPM/resolve/master/data/eval.zip": {
14
+ "num_bytes": 328547742,
15
+ "checksum": null
16
+ }
17
+ },
18
+ "download_size": 328570384,
19
+ "features": {
20
+ "mel": {
21
+ "_type": "Image"
22
+ },
23
+ "cqt": {
24
+ "_type": "Image"
25
+ },
26
+ "chroma": {
27
+ "_type": "Image"
28
+ },
29
+ "label": {
30
+ "names": [
31
+ "Gong",
32
+ "Shang",
33
+ "Jue",
34
+ "Zhi",
35
+ "Yu"
36
+ ],
37
+ "_type": "ClassLabel"
38
+ }
39
+ },
40
+ "homepage": "https://www.modelscope.cn/datasets/ccmusic-database/CNPM",
41
+ "license": "CC-BY-NC-ND",
42
+ "size_in_bytes": 330187336,
43
+ "splits": {
44
+ "train": {
45
+ "name": "train",
46
+ "num_bytes": 1294328,
47
+ "num_examples": 2182,
48
+ "dataset_name": "cnpm"
49
+ },
50
+ "validation": {
51
+ "name": "validation",
52
+ "num_bytes": 161246,
53
+ "num_examples": 271,
54
+ "dataset_name": "cnpm"
55
+ },
56
+ "test": {
57
+ "name": "test",
58
+ "num_bytes": 161378,
59
+ "num_examples": 271,
60
+ "dataset_name": "cnpm"
61
+ }
62
+ },
63
+ "version": {
64
+ "version_str": "0.0.0",
65
+ "major": 0,
66
+ "minor": 0,
67
+ "patch": 0
68
+ }
69
+ }
eval/test/state.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_data_files": [
3
+ {
4
+ "filename": "data-00000-of-00001.arrow"
5
+ }
6
+ ],
7
+ "_fingerprint": "48109d2c71f57d95",
8
+ "_format_columns": null,
9
+ "_format_kwargs": {},
10
+ "_format_type": null,
11
+ "_output_all_columns": false,
12
+ "_split": "test"
13
+ }
eval/train/data-00000-of-00001.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2a5d9beb038e48be457521518bea3a7f3ed791ec29a5f7739c94fcf38f7fbeb
3
+ size 273531712
eval/train/dataset_info.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "builder_name": "cnpm",
3
+ "citation": "",
4
+ "config_name": "eval",
5
+ "dataset_name": "cnpm",
6
+ "dataset_size": 1616952,
7
+ "description": "",
8
+ "download_checksums": {
9
+ "https://www.modelscope.cn/datasets/ccmusic-database/CNPM/resolve/master/data/label.csv": {
10
+ "num_bytes": 22642,
11
+ "checksum": null
12
+ },
13
+ "https://www.modelscope.cn/datasets/ccmusic-database/CNPM/resolve/master/data/eval.zip": {
14
+ "num_bytes": 328547742,
15
+ "checksum": null
16
+ }
17
+ },
18
+ "download_size": 328570384,
19
+ "features": {
20
+ "mel": {
21
+ "_type": "Image"
22
+ },
23
+ "cqt": {
24
+ "_type": "Image"
25
+ },
26
+ "chroma": {
27
+ "_type": "Image"
28
+ },
29
+ "label": {
30
+ "names": [
31
+ "Gong",
32
+ "Shang",
33
+ "Jue",
34
+ "Zhi",
35
+ "Yu"
36
+ ],
37
+ "_type": "ClassLabel"
38
+ }
39
+ },
40
+ "homepage": "https://www.modelscope.cn/datasets/ccmusic-database/CNPM",
41
+ "license": "CC-BY-NC-ND",
42
+ "size_in_bytes": 330187336,
43
+ "splits": {
44
+ "train": {
45
+ "name": "train",
46
+ "num_bytes": 1294328,
47
+ "num_examples": 2182,
48
+ "dataset_name": "cnpm"
49
+ },
50
+ "validation": {
51
+ "name": "validation",
52
+ "num_bytes": 161246,
53
+ "num_examples": 271,
54
+ "dataset_name": "cnpm"
55
+ },
56
+ "test": {
57
+ "name": "test",
58
+ "num_bytes": 161378,
59
+ "num_examples": 271,
60
+ "dataset_name": "cnpm"
61
+ }
62
+ },
63
+ "version": {
64
+ "version_str": "0.0.0",
65
+ "major": 0,
66
+ "minor": 0,
67
+ "patch": 0
68
+ }
69
+ }
eval/train/state.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_data_files": [
3
+ {
4
+ "filename": "data-00000-of-00001.arrow"
5
+ }
6
+ ],
7
+ "_fingerprint": "153870d8a482bc63",
8
+ "_format_columns": null,
9
+ "_format_kwargs": {},
10
+ "_format_type": null,
11
+ "_output_all_columns": false,
12
+ "_split": "train"
13
+ }
eval/validation/data-00000-of-00001.arrow ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:019804c47b0315f0434efa4c101aea34012d00ea9ff4e0ca2b7fdfab08ff7358
3
+ size 34308512
eval/validation/dataset_info.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "builder_name": "cnpm",
3
+ "citation": "",
4
+ "config_name": "eval",
5
+ "dataset_name": "cnpm",
6
+ "dataset_size": 1616952,
7
+ "description": "",
8
+ "download_checksums": {
9
+ "https://www.modelscope.cn/datasets/ccmusic-database/CNPM/resolve/master/data/label.csv": {
10
+ "num_bytes": 22642,
11
+ "checksum": null
12
+ },
13
+ "https://www.modelscope.cn/datasets/ccmusic-database/CNPM/resolve/master/data/eval.zip": {
14
+ "num_bytes": 328547742,
15
+ "checksum": null
16
+ }
17
+ },
18
+ "download_size": 328570384,
19
+ "features": {
20
+ "mel": {
21
+ "_type": "Image"
22
+ },
23
+ "cqt": {
24
+ "_type": "Image"
25
+ },
26
+ "chroma": {
27
+ "_type": "Image"
28
+ },
29
+ "label": {
30
+ "names": [
31
+ "Gong",
32
+ "Shang",
33
+ "Jue",
34
+ "Zhi",
35
+ "Yu"
36
+ ],
37
+ "_type": "ClassLabel"
38
+ }
39
+ },
40
+ "homepage": "https://www.modelscope.cn/datasets/ccmusic-database/CNPM",
41
+ "license": "CC-BY-NC-ND",
42
+ "size_in_bytes": 330187336,
43
+ "splits": {
44
+ "train": {
45
+ "name": "train",
46
+ "num_bytes": 1294328,
47
+ "num_examples": 2182,
48
+ "dataset_name": "cnpm"
49
+ },
50
+ "validation": {
51
+ "name": "validation",
52
+ "num_bytes": 161246,
53
+ "num_examples": 271,
54
+ "dataset_name": "cnpm"
55
+ },
56
+ "test": {
57
+ "name": "test",
58
+ "num_bytes": 161378,
59
+ "num_examples": 271,
60
+ "dataset_name": "cnpm"
61
+ }
62
+ },
63
+ "version": {
64
+ "version_str": "0.0.0",
65
+ "major": 0,
66
+ "minor": 0,
67
+ "patch": 0
68
+ }
69
+ }
eval/validation/state.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_data_files": [
3
+ {
4
+ "filename": "data-00000-of-00001.arrow"
5
+ }
6
+ ],
7
+ "_fingerprint": "30f3092c95c07a21",
8
+ "_format_columns": null,
9
+ "_format_kwargs": {},
10
+ "_format_type": null,
11
+ "_output_all_columns": false,
12
+ "_split": "validation"
13
+ }