admin
commited on
Commit
•
a3b05c5
1
Parent(s):
b09dc83
upd api
Browse files- Guzheng_Tech99.py +9 -13
- README.md +1 -1
Guzheng_Tech99.py
CHANGED
@@ -19,20 +19,18 @@ _NAMES = {
|
|
19 |
}
|
20 |
|
21 |
_NAME = [
|
22 |
-
"chanyin",
|
23 |
-
"boxian",
|
24 |
-
"shanghua",
|
25 |
-
"xiahua",
|
26 |
-
"huazhi/guazou/lianmo/liantuo",
|
27 |
-
"yaozhi",
|
28 |
-
"dianyin",
|
29 |
]
|
30 |
|
31 |
-
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
_DOMAIN = f"https://www.modelscope.cn/api/v1/datasets/ccmusic-database/{_DBNAME}/repo?Revision=master&FilePath=data"
|
36 |
|
37 |
_URLS = {
|
38 |
"audio": f"{_DOMAIN}/audio.zip",
|
@@ -266,7 +264,6 @@ class Guzheng_Tech99(datasets.GeneratorBasedBuilder):
|
|
266 |
X_train, Y_train = self._load(audio_dir, csv_dir, ["train"])
|
267 |
X_valid, Y_valid = self._load(audio_dir, csv_dir, ["validation"])
|
268 |
X_test, Y_test = self._load(audio_dir, csv_dir, ["test"])
|
269 |
-
|
270 |
for i in range(len(X_train)):
|
271 |
trainset.append({"data": X_train[i], "label": Y_train[i]})
|
272 |
|
@@ -279,7 +276,6 @@ class Guzheng_Tech99(datasets.GeneratorBasedBuilder):
|
|
279 |
random.shuffle(trainset)
|
280 |
random.shuffle(validset)
|
281 |
random.shuffle(testset)
|
282 |
-
|
283 |
return [
|
284 |
datasets.SplitGenerator(
|
285 |
name=datasets.Split.TRAIN, gen_kwargs={"files": trainset}
|
|
|
19 |
}
|
20 |
|
21 |
_NAME = [
|
22 |
+
"chanyin", # Vibrato
|
23 |
+
"boxian", # Plucks
|
24 |
+
"shanghua", # Upward Portamento
|
25 |
+
"xiahua", # Downward Portamento
|
26 |
+
"huazhi/guazou/lianmo/liantuo", # Glissando
|
27 |
+
"yaozhi", # Tremolo
|
28 |
+
"dianyin", # Point Note
|
29 |
]
|
30 |
|
31 |
+
_HOMEPAGE = f"https://www.modelscope.cn/datasets/ccmusic-database/{os.path.basename(__file__)[:-3]}"
|
32 |
|
33 |
+
_DOMAIN = f"{_HOMEPAGE}/resolve/master/data"
|
|
|
|
|
34 |
|
35 |
_URLS = {
|
36 |
"audio": f"{_DOMAIN}/audio.zip",
|
|
|
264 |
X_train, Y_train = self._load(audio_dir, csv_dir, ["train"])
|
265 |
X_valid, Y_valid = self._load(audio_dir, csv_dir, ["validation"])
|
266 |
X_test, Y_test = self._load(audio_dir, csv_dir, ["test"])
|
|
|
267 |
for i in range(len(X_train)):
|
268 |
trainset.append({"data": X_train[i], "label": Y_train[i]})
|
269 |
|
|
|
276 |
random.shuffle(trainset)
|
277 |
random.shuffle(validset)
|
278 |
random.shuffle(testset)
|
|
|
279 |
return [
|
280 |
datasets.SplitGenerator(
|
281 |
name=datasets.Split.TRAIN, gen_kwargs={"files": trainset}
|
README.md
CHANGED
@@ -111,7 +111,7 @@ for item in ds["test"]:
|
|
111 |
|
112 |
## Maintenance
|
113 |
```bash
|
114 |
-
|
115 |
cd Guzheng_Tech99
|
116 |
```
|
117 |
## Dataset Creation
|
|
|
111 |
|
112 |
## Maintenance
|
113 |
```bash
|
114 |
+
git clone [email protected]:datasets/ccmusic-database/Guzheng_Tech99
|
115 |
cd Guzheng_Tech99
|
116 |
```
|
117 |
## Dataset Creation
|