Datasets:

Size:
n<1K
ArXiv:
License:
admin commited on
Commit
6e93b7b
·
1 Parent(s): d8599ba
Files changed (2) hide show
  1. GZ_IsoTech.py +4 -6
  2. README.md +1 -1
GZ_IsoTech.py CHANGED
@@ -4,11 +4,9 @@ import hashlib
4
  import datasets
5
  from datasets.tasks import AudioClassification
6
 
7
- _DBNAME = os.path.basename(__file__).split(".")[0]
8
 
9
- _DOMAIN = f"https://www.modelscope.cn/api/v1/datasets/ccmusic-database/{_DBNAME}/repo?Revision=master&FilePath=data"
10
-
11
- _HOMEPAGE = f"https://www.modelscope.cn/datasets/ccmusic-database/{_DBNAME}"
12
 
13
  _NAMES = {
14
  "vibrato": ["颤音", "chan4_yin1"],
@@ -21,7 +19,6 @@ _NAMES = {
21
  "plucks": ["勾, 打, 抹, 托, ...", "gou1/da3/mo3/tuo1/etc"],
22
  }
23
 
24
-
25
  _URLS = {
26
  "audio": f"{_DOMAIN}/audio.zip",
27
  "mel": f"{_DOMAIN}/mel.zip",
@@ -71,6 +68,7 @@ class GZ_IsoTech(datasets.GeneratorBasedBuilder):
71
  item_id = self._str2md5(cls + fname.split(".wa")[0])
72
  if splt == "train":
73
  train_files[item_id] = {"audio": path}
 
74
  else:
75
  test_files[item_id] = {"audio": path}
76
 
@@ -83,6 +81,7 @@ class GZ_IsoTech(datasets.GeneratorBasedBuilder):
83
  item_id = self._str2md5(cls + fname.split(".jp")[0])
84
  if splt == "train":
85
  train_files[item_id]["mel"] = path
 
86
  else:
87
  test_files[item_id]["mel"] = path
88
 
@@ -90,7 +89,6 @@ class GZ_IsoTech(datasets.GeneratorBasedBuilder):
90
  testset = list(test_files.values())
91
  random.shuffle(trainset)
92
  random.shuffle(testset)
93
-
94
  return [
95
  datasets.SplitGenerator(
96
  name=datasets.Split.TRAIN,
 
4
  import datasets
5
  from datasets.tasks import AudioClassification
6
 
7
+ _HOMEPAGE = f"https://www.modelscope.cn/datasets/ccmusic-database/{os.path.basename(__file__)[:-3]}"
8
 
9
+ _DOMAIN = f"{_HOMEPAGE}/resolve/master/data"
 
 
10
 
11
  _NAMES = {
12
  "vibrato": ["颤音", "chan4_yin1"],
 
19
  "plucks": ["勾, 打, 抹, 托, ...", "gou1/da3/mo3/tuo1/etc"],
20
  }
21
 
 
22
  _URLS = {
23
  "audio": f"{_DOMAIN}/audio.zip",
24
  "mel": f"{_DOMAIN}/mel.zip",
 
68
  item_id = self._str2md5(cls + fname.split(".wa")[0])
69
  if splt == "train":
70
  train_files[item_id] = {"audio": path}
71
+
72
  else:
73
  test_files[item_id] = {"audio": path}
74
 
 
81
  item_id = self._str2md5(cls + fname.split(".jp")[0])
82
  if splt == "train":
83
  train_files[item_id]["mel"] = path
84
+
85
  else:
86
  test_files[item_id]["mel"] = path
87
 
 
89
  testset = list(test_files.values())
90
  random.shuffle(trainset)
91
  random.shuffle(testset)
 
92
  return [
93
  datasets.SplitGenerator(
94
  name=datasets.Split.TRAIN,
README.md CHANGED
@@ -93,7 +93,7 @@ for item in ds["test"]:
93
 
94
  ## Maintenance
95
  ```bash
96
- GIT_LFS_SKIP_SMUDGE=1 git clone git@hf.co:datasets/ccmusic-database/GZ_IsoTech
97
  cd GZ_IsoTech
98
  ```
99
 
 
93
 
94
  ## Maintenance
95
  ```bash
96
+ git clone git@hf.co:datasets/ccmusic-database/GZ_IsoTech
97
  cd GZ_IsoTech
98
  ```
99