admin commited on
Commit
6436c5b
1 Parent(s): 42cdd37
Files changed (3) hide show
  1. .gitignore +1 -0
  2. CTIS.py +310 -0
  3. README.md +148 -1
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ rename.sh
CTIS.py ADDED
@@ -0,0 +1,310 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import random
3
+ import hashlib
4
+ import datasets
5
+ from datasets.tasks import AudioClassification
6
+
7
+
8
+ _DBNAME = os.path.basename(__file__).split(".")[0]
9
+
10
+ _DOMAIN = f"https://www.modelscope.cn/api/v1/datasets/ccmusic-database/{_DBNAME}/repo?Revision=master&FilePath=data"
11
+
12
+ _HOMEPAGE = f"https://www.modelscope.cn/datasets/ccmusic-database/{_DBNAME}"
13
+
14
+ _NAMES = {
15
+ "C0090": ["大笒", "da4_cen2"],
16
+ "C0091": ["高音横笛", "Treble_heng2_di2"],
17
+ "C0092": ["低音横笛", "Bass_heng2_di2"],
18
+ "C0093": ["中音横笛", "Alto_heng2_di2"],
19
+ "C0094": ["唢呐", "suo3_na"],
20
+ "C0095": ["长唢呐", "chang2_suo3_na"],
21
+ "C0096": ["小筚篥", "Treble_bi4_li"],
22
+ "C0097": ["中音筚篥", "Alto_bi4_li"],
23
+ "C0098": ["低音筚篥", "Bass_bi4_li"],
24
+ "C0099": ["短箫", "duan3_xiao1"],
25
+ "C0100": ["短箫(传统)", "duan3_xiao1_(traditional)"],
26
+ "C0101": ["洞箫", "dong4_xiao1"],
27
+ "C0113": ["尖子号", "jian1_zi3_hao4"],
28
+ "C0114": ["尖子号2", "jian1_zi3_hao4_2"],
29
+ "C0117": ["南音洞箫", "nan2_yin1_dong4_xiao1"],
30
+ "C0123": ["南嗳仔", "nan2_ai1_zai3"],
31
+ "C0124": ["大吹", "da4_chui1"],
32
+ "C0182": ["长号", "chang2_hao4"],
33
+ "C0183": ["老长号", "lao3_chang2_hao4"],
34
+ "C0187": ["高音唢呐", "Treble_suo3_na"],
35
+ "C0188": ["低音唢呐", "Bass_suo3_na"],
36
+ "C0200": ["大芦笙", "da4_lu2_sheng1"],
37
+ "C0201": ["小芦笙", "xiao3_lu2_sheng1"],
38
+ "C0237": ["G调梆笛", "bang1_di2_in_G"],
39
+ "C0243": ["高音键笙", "Treble_jian4_sheng1"],
40
+ "C0244": ["传统笙", "traditional_sheng1"],
41
+ "C0257": ["低音加键唢呐", "Bass_jia1_jian4_suo3_na"],
42
+ "C0259": ["中音加键唢呐", "Alto_jia1_jian4_suo3_na"],
43
+ "C0263": ["中音笙", "Alto_sheng1"],
44
+ "C0264": ["低音笙", "Bass_sheng1"],
45
+ "C0265": ["管子", "guan3_zi"],
46
+ "C0280": ["A调曲笛", "qu3_di2_in_A"],
47
+ "C0281": ["G调新笛", "xin1_di2_in_G"],
48
+ "C0282": ["萧", "xiao1"],
49
+ "C0283": ["埙", "xun1"],
50
+ "C0296": ["唢呐2", "suo3_na_2"],
51
+ "C0303": ["小闷笛", "xiao3_men1_di2"],
52
+ "C0304": ["侗笛", "dong4_di2"],
53
+ "C0305": ["德", "de2"],
54
+ "C0306": ["拉祜族葫芦笙", "la1_hu2_zu2_hu2_lu2_sheng1"],
55
+ "C0308": ["吐良", "tu3_liang2"],
56
+ "C0309": ["葫芦丝", "hu2_lu2_si1"],
57
+ "C0310": ["F调巴乌", "ba1_wu1_in_F"],
58
+ "C0311": ["俄比", "e2_bi3"],
59
+ "C0316": ["侗巴", "dong4_ba1"],
60
+ "D0015": ["扬琴", "yang2_qin2"],
61
+ "D0048": ["低音大锣", "Bass_da4_luo2"],
62
+ "D0049": ["虎音锣", "hu3_yin1_luo2"],
63
+ "D0050": ["小钹", "xiao3_bo1"],
64
+ "D0051": ["钹", "bo1"],
65
+ "D0058": ["提手(板)", "ti2_shou3_(ban3)"],
66
+ "D0060": ["川小锣", "chuan1_xiao3_luo2"],
67
+ "D0061": ["大铛铛", "da4_cheng1_cheng1"],
68
+ "D0062": ["小铛铛", "xiao3_cheng1_cheng1"],
69
+ "D0063": ["二馨", "er4_xin1"],
70
+ "D0064": ["川大钵", "chuan1_da4_bo1"],
71
+ "D0065": ["苏钵", "su1_bo1"],
72
+ "D0066": ["川剧堂鼓", "chuan1_ju4_tang2_gu3"],
73
+ "D0067": ["川铰", "chuan1_jiao3"],
74
+ "D0068": ["川大锣", "chuan1_da4_luo2"],
75
+ "D0069": ["蛮锣", "man2_luo2"],
76
+ "D0070": ["包锣", "bao1_luo2"],
77
+ "D0071": ["引鼓", "yin3_gu3"],
78
+ "D0102": ["上杖鼓", "shang4_zhang4_gu3"],
79
+ "D0103": ["小锣", "xiao3_luo2"],
80
+ "D0104": ["圆锣", "yuan2_luo2"],
81
+ "D0105": ["杖鼓", "zhang4_gu3"],
82
+ "D0125": ["南鼓", "nan2_gu3"],
83
+ "D0126": ["压脚鼓", "ya1_jiao3_gu3"],
84
+ "D0127": ["钟", "zhong1"],
85
+ "D0128": ["草锣", "cao3_luo2"],
86
+ "D0129": ["锣仔", "luo2_zai3"],
87
+ "D0130": ["响盏", "xiang3_zhan3"],
88
+ "D0131": ["小叫", "xiao3_jiao4"],
89
+ "D0132": ["拍", "pai1"],
90
+ "D0137": ["渔鼓", "yu2_gu3"],
91
+ "D0138": ["简板", "jian3_ban3"],
92
+ "D0140": ["脚梆子", "jiao3_bang1_zi"],
93
+ "D0143": ["双铃", "shuang1_ling2"],
94
+ "D0144": ["小叫锣", "xiao3_jiao4_luo2"],
95
+ "D0145": ["拍板", "pai1_ban3"],
96
+ "D0146": ["四宝", "si4_bao3"],
97
+ "D0147": ["响盏2", "xiang3_zhan3_2"],
98
+ "D0172": ["碗碗", "wan3_wan3"],
99
+ "D0173": ["代子", "dai4_zi"],
100
+ "D0176": ["福(新)", "fu2_(reformed)"],
101
+ "D0177": ["禄(新)", "lu4_(reformed)"],
102
+ "D0178": ["寿(新)", "shou4_(reformed)"],
103
+ "D0179": ["宜春三星鼓福鼓老鼓", "yi2_chun1_san1_xing1_gu3_fu2_gu3_lao3_gu3"],
104
+ "D0180": ["宜春三星鼓禄鼓老鼓", "yi2_chun1_san1_xing1_gu3_lu4_gu3_lao3_gu3"],
105
+ "D0181": ["宜春三星鼓寿鼓老鼓", "yi2_chun1_san1_xing1_gu3_shou4_gu3_lao3_gu3"],
106
+ "D0184": ["宜春三星鼓双铛", "yi2_chun1_san1_xing1_gu3_shuang1_ding1"],
107
+ "D0185": ["宜春三星鼓单铛", "yi2_chun1_san1_xing1_gu3_dan1_ding1"],
108
+ "D0186": ["宜春三星鼓镲", "yi2_chun1_san1_xing1_gu3_chao3"],
109
+ "D0241": ["编钟", "bian1_zhong1"],
110
+ "D0242": ["编磬", "bian1_qing4"],
111
+ "D0245": ["南梆子", "nan2_bang1_zi"],
112
+ "D0246": ["北梆子", "bei3_bang1_zi"],
113
+ "D0247": ["碰铃", "peng4_ling2"],
114
+ "D0248": ["中国大鼓", "Chinese_da4_gu3"],
115
+ "D0249": ["花盆鼓", "hua1_pen2_gu3"],
116
+ "D0250": ["小堂鼓", "xiao3_tang2_gu3"],
117
+ "D0251": ["扁鼓", "bian3_gu3"],
118
+ "D0252": ["五音排鼓", "wu3_yin1_pai2_gu3"],
119
+ "D0268": ["草帽镲", "cao3_mao4_chao3"],
120
+ "D0269": ["铙", "nao2"],
121
+ "D0270": ["铙钹", "nao2_bo1"],
122
+ "D0271": ["小镲", "xiao3_chao3"],
123
+ "D0272": ["抄锣", "chao1_luo2"],
124
+ "D0273": ["中虎", "zhong1_hu3"],
125
+ "D0274": ["武锣", "wu3_luo2"],
126
+ "D0275": ["小锣2", "xiao3_luo2_2"],
127
+ "D0276": ["马锣", "ma3_luo2"],
128
+ "D0277": ["木鱼", "mu4_yu2"],
129
+ "D0278": ["板鼓", "ban3_gu3"],
130
+ "D0279": ["云锣", "yun2_luo2"],
131
+ "D0284": ["斗锣", "dou3_luo2"],
132
+ "D0286": ["曲锣", "qu3_luo2"],
133
+ "D0287": ["深波", "shen1_bo1"],
134
+ "D0290": ["大镲", "da4_chao3"],
135
+ "D0298": ["编铓", "bian1_zhang1"],
136
+ "D0299": ["牛铃", "niu2_ling2"],
137
+ "D0315": ["竹排琴", "zhu2_pai2_qin2"],
138
+ "D0325": ["那格拉", "na4_ge2_la1"],
139
+ "D0326": ["库休克", "ku4_xiu1_ke4"],
140
+ "D0327": ["萨巴依", "sa4_ba1_yi1"],
141
+ "D0328": ["手鼓", "shou3_gu3"],
142
+ "L0044": ["锡剧主胡", "xi1_ju4_zhu3_hu2"],
143
+ "L0045": ["扬剧主胡", "yang2_ju4_zhu3_hu2"],
144
+ "L0046": ["扬剧主胡F调", "yang2_ju4_zhu3_hu2_in_F"],
145
+ "L0047": ["扬剧主胡(小西皮)", "yang2_ju4_zhu3_hu2_(xiao3_xi1_pi2)"],
146
+ "L0053": ["广西彩调主胡", "guang3_xi1_cai3_diao4_zhu3_hu2"],
147
+ "L0055": ["牛腿琴", "niu2_tui3_qin2"],
148
+ "L0056": ["壮剧马骨胡D调", "zhuang4_ju4_ma3_gu3_hu2_in_D"],
149
+ "L0072": ["盖板(新)D调", "gai4_ban3_(reformed)_in_D"],
150
+ "L0073": ["盖板(传统)", "gai4_ban3_(traditional)"],
151
+ "L0074": ["壮剧土胡", "zhuang4_ju4_tu3_hu2"],
152
+ "L0075": ["晋剧晋胡", "jin4_ju4_jin4_hu2"],
153
+ "L0076": ["壮剧土胡2", "zhuang4_ju4_tu3_hu2_2"],
154
+ "L0077": ["晋剧二股弦", "jin4_ju4_er4_gu3_xian2"],
155
+ "L0080": ["吕剧坠琴", "lv3_ju4_zhui4_qin2"],
156
+ "L0084": ["奚琴(传统)", "xi1_qin2_(traditional)"],
157
+ "L0085": ["奚琴(改良)", "xi1_qin2_(reformed)"],
158
+ "L0086": ["中音奚琴(改良)", "Alto_xi1_qin2_(reformed)"],
159
+ "L0115": ["莱芜梆子-梆胡", "lai2_wu2_bang1_zi-bang1_hu2"],
160
+ "L0121": ["六角弦", "liu4_jiao3_xian2"],
161
+ "L0122": ["壳仔弦", "ke2_zai3_xian2"],
162
+ "L0133": ["陇剧陇胡(传统)", "long3_ju4_long3_hu2_(traditional)"],
163
+ "L0134": ["陇剧陇胡(改良)D调", "long3_ju4_long3_hu2_(reformed)_in_D"],
164
+ "L0135": ["齐琴", "qi2_qin2"],
165
+ "L0136": ["渔胡", "yu2_hu2"],
166
+ "L0139": ["坠胡", "zhui4_hu2"],
167
+ "L0141": ["越胡", "yue4_hu2"],
168
+ "L0148": ["板胡", "ban3_hu2"],
169
+ "L0149": ["绍剧板胡", "shao4_ju4_ban3_hu2"],
170
+ "L0150": ["宛梆子梆胡", "yuan1_bang1_zi_bang1_hu2"],
171
+ "L0151": ["四弦", "si4_xian2"],
172
+ "L0152": ["滇葫(小二胡)", "dian1_hu2_(xiao3_er4_hu2)"],
173
+ "L0153": ["云南花灯丝弦", "yun2_nan2_hua1_deng1_si1_xian2"],
174
+ "L0154": ["仕胡", "shi4_hu2"],
175
+ "L0155": ["伬胡", "chi4_hu2"],
176
+ "L0156": ["工胡", "gong1_hu2"],
177
+ "L0157": ["大胡", "da4_hu2"],
178
+ "L0158": ["低音伬胡", "Bass_chi4_hu2"],
179
+ "L0160": ["丝弦", "si1_xian2"],
180
+ "L0161": ["滇胡", "dian1_hu2"],
181
+ "L0162": ["襄阳专用胡琴", "xiang1_yang2_zhuan1_yong4_hu2_qin2"],
182
+ "L0163": ["雷胡", "lei2_hu2"],
183
+ "L0164": ["赣胡", "gan4_hu2"],
184
+ "L0165": ["高腔赣胡", "gao1_qiang1_gan4_hu2"],
185
+ "L0166": ["高腔赣胡第2代", "gao1_qiang1_gan4_hu2_2nd_generation"],
186
+ "L0167": ["黔胡", "qian2_hu2"],
187
+ "L0168": ["花胡", "hua1_hu2"],
188
+ "L0169": ["花胡2", "hua1_hu2_2"],
189
+ "L0170": ["二股弦", "er4_gu3_xian2"],
190
+ "L0239": ["高音板胡", "Treble_ban3_hu2"],
191
+ "L0240": ["中音板胡", "Alto_ban3_hu2"],
192
+ "L0256": ["雷琴", "lei2_qin2"],
193
+ "L0266": ["二胡", "er4_hu2"],
194
+ "L0285": ["二弦", "er4_xian2"],
195
+ "L0288": ["椰胡", "ye1_hu2"],
196
+ "L0291": ["扁八角高胡", "bian3_ba1_jiao3_gao1_hu2"],
197
+ "L0292": ["六角高胡", "liu4_jiao3_gao1_hu2"],
198
+ # "L0293": ["某少数民族胡", "unknown_hu2"],
199
+ "L0297": ["中胡", "zhong1_hu2"],
200
+ "L0307": ["芦笙", "lu2_sheng1"],
201
+ "L0312": ["牛角胡", "niu2_jiao3_hu2"],
202
+ "L0313": ["佤族独弦琴", "wa3_zu2_du2_xian2_qin2"],
203
+ "L0314": ["葫芦琴", "hu2_lu2_qin2"],
204
+ "T0006": ["陶布舒尔", "tao2_bu4_shu1_er3"],
205
+ "T0007": ["雅托嘎", "ya3_tuo1_ga2"],
206
+ "T0078": ["四股弦", "si4_gu3_xian2"],
207
+ "T0081": ["玄琴", "xuan2_qin2"],
208
+ "T0082": ["伽倻琴(改良)", "jia1_ye2_qin2_(reformed)"],
209
+ "T0083": ["伽倻琴", "jia1_ye2_qin2"],
210
+ "T0087": ["雅筝", "ya3_zheng1"],
211
+ "T0088": ["扬琴2", "yang2_qin2_2"],
212
+ "T0089": ["扬琴3", "yang2_qin2_3"],
213
+ "T0111": ["三弦", "san1_xian2"],
214
+ "T0116": ["八角月琴", "ba1_jiao3_yue4_qin2"],
215
+ "T0159": ["双清", "shuang1_qing1"],
216
+ "T0171": ["月琴", "yue4_qin2"],
217
+ "T0238": ["大阮", "da4_ruan3"],
218
+ "T0254": ["箜篌", "kong1_hou2"],
219
+ "T0255": ["古筝", "gu3_zheng1"],
220
+ "T0260": ["中阮", "zhong1_ruan3"],
221
+ "T0261": ["柳琴", "liu3_qin2"],
222
+ "T0262": ["琵琶", "pi2_pa2"],
223
+ "T0267": ["扬琴4", "yang2_qin2_4"],
224
+ "T0289": ["三弦2", "san1_xian2_2"],
225
+ "T0294": ["南音琵琶", "nan2_yin1_pi2_pa2"],
226
+ "T0295": ["南音三弦", "nan2_yin1_san1_xian2"],
227
+ "T0300": ["澜沧小三弦", "lan2_cang1_xiao3_san1_xian2"],
228
+ "T0301": ["玎", "ding1"],
229
+ "T0302": ["傈傈族奇奔", "li4_li4_zu2_qi2_ben1"],
230
+ "T0317": ["独弦琴", "du2_xian2_qin2"],
231
+ "T0318": ["弹拨尔", "dan4_bo1_er3"],
232
+ "T0319": ["低音热瓦普", "Bass_re4_wa3_pu3"],
233
+ "T0320": ["民间热瓦普", "folk_re4_wa3_pu3"],
234
+ "T0323": ["都它尔", "du1_ta1_er3"],
235
+ }
236
+
237
+ _URLS = {
238
+ "audio": f"{_DOMAIN}/audio.zip",
239
+ "mel": f"{_DOMAIN}/mel.zip",
240
+ }
241
+
242
+
243
+ class CTIS(datasets.GeneratorBasedBuilder):
244
+ def _info(self):
245
+ return datasets.DatasetInfo(
246
+ features=datasets.Features(
247
+ {
248
+ "audio": datasets.Audio(sampling_rate=44100),
249
+ "mel": datasets.Image(),
250
+ "label": datasets.features.ClassLabel(names=list(_NAMES.keys())),
251
+ "cname": datasets.Value("string"),
252
+ "pinyin": datasets.Value("string"),
253
+ }
254
+ ),
255
+ supervised_keys=("audio", "label"),
256
+ homepage=_HOMEPAGE,
257
+ license="CC-BY-NC-ND",
258
+ version="1.2.0",
259
+ task_templates=[
260
+ AudioClassification(
261
+ task="audio-classification",
262
+ audio_column="audio",
263
+ label_column="label",
264
+ )
265
+ ],
266
+ )
267
+
268
+ def _str2md5(self, original_string: str):
269
+ md5_obj = hashlib.md5()
270
+ md5_obj.update(original_string.encode("utf-8"))
271
+ return md5_obj.hexdigest()
272
+
273
+ def _split_generators(self, dl_manager):
274
+ audio_files = dl_manager.download_and_extract(_URLS["audio"])
275
+ mel_files = dl_manager.download_and_extract(_URLS["mel"])
276
+ files = {}
277
+ for fpath in dl_manager.iter_files([audio_files]):
278
+ fname: str = os.path.basename(fpath)
279
+ label = os.path.basename(os.path.dirname(fpath))
280
+ if fname.endswith(".wav") and label in _NAMES and not "采访" in fname:
281
+ cls = os.path.basename(os.path.dirname(fpath)) + "/"
282
+ item_id = self._str2md5(cls + fname.split(".wa")[0])
283
+ files[item_id] = {"audio": fpath, "label": label}
284
+
285
+ for fpath in dl_manager.iter_files([mel_files]):
286
+ fname = os.path.basename(fpath)
287
+ label = os.path.basename(os.path.dirname(fpath))
288
+ if fname.endswith(".jpg") and label in _NAMES:
289
+ cls = os.path.basename(os.path.dirname(fpath)) + "/"
290
+ item_id = self._str2md5(cls + fname.split(".jp")[0])
291
+ files[item_id]["mel"] = fpath
292
+
293
+ dataset = list(files.values())
294
+ random.shuffle(dataset)
295
+ return [
296
+ datasets.SplitGenerator(
297
+ name=datasets.Split.TRAIN,
298
+ gen_kwargs={"files": dataset},
299
+ ),
300
+ ]
301
+
302
+ def _generate_examples(self, files):
303
+ for i, item in enumerate(files):
304
+ yield i, {
305
+ "audio": item["audio"],
306
+ "mel": item["mel"],
307
+ "label": item["label"],
308
+ "cname": _NAMES[item["label"]][0],
309
+ "pinyin": _NAMES[item["label"]][1],
310
+ }
README.md CHANGED
@@ -1,3 +1,150 @@
1
  ---
2
- license: mit
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-nc-nd-4.0
3
+ task_categories:
4
+ - audio-classification
5
+ language:
6
+ - zh
7
+ - en
8
+ tags:
9
+ - music
10
+ - art
11
+ pretty_name: Chinese Traditional Instrument Sound Dataset
12
+ size_categories:
13
+ - 1K<n<10K
14
+ viewer: false
15
  ---
16
+
17
+ # Dataset Card for Chinese Traditional Instrument Sound
18
+ The raw dataset is sourced from the [Chinese Traditional Instrument Sound](https://ccmusic-database.github.io/en/database/ctis.html), which contains recordings from over 200 types of Chinese traditional instruments, modified Chinese musical instruments, and instruments from ethnic minority groups. Notably, some of these instruments are rarely encountered by the majority of the Chinese populace.
19
+
20
+ Based on the aforementioned raw dataset, after data processing, we have constructed the `default subset` of the current integrated version of the dataset, and its data structure can be viewed in the [viewer](https://www.modelscope.cn/datasets/ccmusic-database/CTIS/dataPeview). As the dataset has been cited and used in published articles, the step of further constructing the `eval subset` for evaluation has been omitted. This dataset is intended for retrieval tasks, hence no further splits have been made, and currently, there is only one split, which is the training set (train).
21
+
22
+ ## Viewer
23
+ <https://www.modelscope.cn/datasets/ccmusic-database/CTIS/dataPeview>
24
+
25
+ ## Dataset Structure
26
+ <style>
27
+ .ctis td {
28
+ vertical-align: middle !important;
29
+ text-align: center;
30
+ }
31
+ .ctis th {
32
+ text-align: center;
33
+ }
34
+ </style>
35
+ <table class="ctis">
36
+ <tr>
37
+ <td>audio</td>
38
+ <td>mel</td>
39
+ <td>label (200+class)</td>
40
+ <td>cname (string)</td>
41
+ </tr>
42
+ <tr>
43
+ <td>.wav, 44100Hz</td>
44
+ <td>.jpg, 44100Hz</td>
45
+ <td>C0090/<br>C0091/<br>...<br>T0323</td>
46
+ <td>大笒/<br>高音横笛/<br>...<br>都它尔</td>
47
+ </tr>
48
+ <tr>
49
+ <td>...</td>
50
+ <td>...</td>
51
+ <td>...</td>
52
+ <td>...</td>
53
+ </tr>
54
+ </table>
55
+
56
+ ## Dataset Description
57
+ - **Homepage:** <https://ccmusic-database.github.io>
58
+ - **Repository:** <https://huggingface.co/datasets/ccmusic-database/CTIS>
59
+ - **Paper:** <https://doi.org/10.5281/zenodo.5676893>
60
+ - **Leaderboard:** <https://ccmusic-database.github.io/team.html>
61
+ - **Point of Contact:** <https://www.modelscope.cn/datasets/ccmusic-database/CTIS>
62
+
63
+ ## Maintenance
64
+ ```bash
65
+ GIT_LFS_SKIP_SMUDGE=1 git clone git@hf.co:datasets/ccmusic-database/CTIS
66
+ cd CTIS
67
+ ```
68
+
69
+ ### Dataset Summary
70
+ During the integration, we first performed data cleaning to remove recordings with no specific instrument labels. The filtered dataset comprises recordings of 200 types of Chinese traditional musical instruments, totaling 3,974 audio clips. On average, there are approximately 20 audio clips per instrument. The data structure of the integrated dataset consists of three columns: an audio column containing audio files in .wav format, all sampled at a uniform rate of 22,050 Hz, a label column with 200 categories corresponding to the Chinese pinyin of the instrument names, and an additional column for the Chinese instrument names. This integrated dataset can be utilized for tasks such as Chinese instrument recognition or instrument acoustic analysis.
71
+
72
+ ### Supported Tasks and Leaderboards
73
+ MIR, audio classification
74
+
75
+ ### Languages
76
+ Chinese, English
77
+
78
+ ## Usage
79
+ ```python
80
+ from datasets import load_dataset
81
+
82
+ dataset = load_dataset("ccmusic-database/CTIS", split="train")
83
+ for item in ds:
84
+ print(item)
85
+ ```
86
+
87
+ ### Data Instances
88
+ .zip(.wav), .csv
89
+
90
+ ### Data Fields
91
+ Up to 287 kinds of Chinese traditional musical instruments, improved Chinese musical instruments and Chinese ethnic musical instruments
92
+
93
+ ### Data Splits
94
+ instruments, percussion
95
+
96
+ ## Dataset Creation
97
+ ### Curation Rationale
98
+ Lack of a dataset for Chinese traditional musical instruments
99
+
100
+ ### Source Data
101
+ #### Initial Data Collection and Normalization
102
+ Zhaorui Liu, Monan Zhou
103
+
104
+ #### Who are the source language producers?
105
+ Students from CCMUSIC
106
+
107
+ ### Annotations
108
+ #### Annotation process
109
+ Building a high-quality musical sound database requires consideration on every aspect of the criteria in terms of the recording environment, performer, sample content, annotation standard and quality of recording and performing.
110
+
111
+ #### Who are the annotators?
112
+ Students from CCMUSIC
113
+
114
+ ### Personal and Sensitive Information
115
+ None
116
+
117
+ ## Considerations for Using the Data
118
+ ### Social Impact of Dataset
119
+ Advancing the Digitization Process of Traditional Chinese Instruments
120
+
121
+ ### Discussion of Biases
122
+ Only for Traditional Chinese Instruments
123
+
124
+ ### Other Known Limitations
125
+ Sample imbalance
126
+
127
+ ## Additional Information
128
+ ### Dataset Curators
129
+ Zijin Li
130
+
131
+ ### Evaluation
132
+ [1] [李子晋, 韩宝强. 中国传统乐器音响数据库构建研究[J]. 中国音乐学, 2020(02):92-102+2.](https://kns.cnki.net/kcms/detail/detail.aspx?dbcode=CJFD&dbname=CJFDLAST2020&filename=ZYYX202002013&uniplatform=NZKPT&v=7XgjFhWwxaqXz5fg8DIhkJzfNT6gX9huNMH0y5oRG15SXfwDzqWIOuuquyUDS%25mmd2FJ9)<br>
133
+ [2] [Liang X, Li Z, Liu J, et al. Constructing a multimedia Chinese musical instrument database[C]//Proceedings of the 6th Conference on Sound and Music Technology (CSMT). Springer, Singapore, 2019: 53-60.](https://link.springer.com/chapter/10.1007/978-981-13-8707-4_5)<br>
134
+ [3] [Li Z, Liang X, Liu J, et al. DCMI: A Database of Chinese Musical Instruments[J].](https://dlfm.web.ox.ac.uk/sites/default/files/dlfm/documents/media/zijin-et-al-dcmi.pdf)
135
+
136
+ ### Citation Information
137
+ ```bibtex
138
+ @dataset{zhaorui_liu_2021_5676893,
139
+ author = {Monan Zhou, Shenyang Xu, Zhaorui Liu, Zhaowen Wang, Feng Yu, Wei Li and Baoqiang Han},
140
+ title = {CCMusic: an Open and Diverse Database for Chinese and General Music Information Retrieval Research},
141
+ month = {mar},
142
+ year = {2024},
143
+ publisher = {HuggingFace},
144
+ version = {1.2},
145
+ url = {https://huggingface.co/ccmusic-database}
146
+ }
147
+ ```
148
+
149
+ ### Contributions
150
+ Provide a dataset for Chinese Traditional Instrument Sounds