Datasets:
admin
commited on
Commit
•
2a33ba4
1
Parent(s):
4cbd76f
upd api
Browse files
README.md
CHANGED
@@ -136,7 +136,7 @@ for item in ds["test"]:
|
|
136 |
|
137 |
## Maintenance
|
138 |
```bash
|
139 |
-
|
140 |
cd pianos
|
141 |
```
|
142 |
|
|
|
136 |
|
137 |
## Maintenance
|
138 |
```bash
|
139 |
+
git clone [email protected]:datasets/ccmusic-database/pianos
|
140 |
cd pianos
|
141 |
```
|
142 |
|
pianos.py
CHANGED
@@ -15,12 +15,9 @@ _NAMES = {
|
|
15 |
"Yamaha": [3.23, 3.03, 3.17, 3.14],
|
16 |
}
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
_HOMEPAGE = f"https://www.modelscope.cn/datasets/ccmusic-database/{_DBNAME}"
|
21 |
-
|
22 |
-
_DOMAIN = f"https://www.modelscope.cn/api/v1/datasets/ccmusic-database/{_DBNAME}/repo?Revision=master&FilePath=data"
|
23 |
|
|
|
24 |
|
25 |
_PITCHES = {
|
26 |
"009": "A2",
|
@@ -240,7 +237,6 @@ class pianos(datasets.GeneratorBasedBuilder):
|
|
240 |
random.shuffle(trainset)
|
241 |
random.shuffle(validset)
|
242 |
random.shuffle(testset)
|
243 |
-
|
244 |
return [
|
245 |
datasets.SplitGenerator(
|
246 |
name=datasets.Split.TRAIN, gen_kwargs={"files": trainset}
|
|
|
15 |
"Yamaha": [3.23, 3.03, 3.17, 3.14],
|
16 |
}
|
17 |
|
18 |
+
_HOMEPAGE = f"https://www.modelscope.cn/datasets/ccmusic-database/{os.path.basename(__file__)[:-3]}"
|
|
|
|
|
|
|
|
|
19 |
|
20 |
+
_DOMAIN = f"{_HOMEPAGE}/resolve/master/data"
|
21 |
|
22 |
_PITCHES = {
|
23 |
"009": "A2",
|
|
|
237 |
random.shuffle(trainset)
|
238 |
random.shuffle(validset)
|
239 |
random.shuffle(testset)
|
|
|
240 |
return [
|
241 |
datasets.SplitGenerator(
|
242 |
name=datasets.Split.TRAIN, gen_kwargs={"files": trainset}
|