Datasets:

Languages:
English
ArXiv:
License:
admin commited on
Commit
2a33ba4
1 Parent(s): 4cbd76f
Files changed (2) hide show
  1. README.md +1 -1
  2. pianos.py +2 -6
README.md CHANGED
@@ -136,7 +136,7 @@ for item in ds["test"]:
136
 
137
  ## Maintenance
138
  ```bash
139
- GIT_LFS_SKIP_SMUDGE=1 git clone [email protected]:datasets/ccmusic-database/pianos
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
- _DBNAME = os.path.basename(__file__).split(".")[0]
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}