Datasets:
admin commited on
Commit ·
7c8fceb
1
Parent(s): 4009acb
upd api
Browse files- README.md +1 -1
- bel_canto.py +2 -6
README.md
CHANGED
|
@@ -139,7 +139,7 @@ for item in ds["test"]:
|
|
| 139 |
|
| 140 |
## Maintenance
|
| 141 |
```bash
|
| 142 |
-
|
| 143 |
cd bel_canto
|
| 144 |
```
|
| 145 |
|
|
|
|
| 139 |
|
| 140 |
## Maintenance
|
| 141 |
```bash
|
| 142 |
+
git clone git@hf.co:datasets/ccmusic-database/bel_canto
|
| 143 |
cd bel_canto
|
| 144 |
```
|
| 145 |
|
bel_canto.py
CHANGED
|
@@ -11,12 +11,9 @@ _NAMES = {
|
|
| 11 |
"singing_method": ["Folk_Singing", "Bel_Canto"],
|
| 12 |
}
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
_HOMEPAGE = f"https://www.modelscope.cn/datasets/ccmusic-database/{_DBNAME}"
|
| 17 |
-
|
| 18 |
-
_DOMAIN = f"https://www.modelscope.cn/api/v1/datasets/ccmusic-database/{_DBNAME}/repo?Revision=master&FilePath=data"
|
| 19 |
|
|
|
|
| 20 |
|
| 21 |
_URLS = {
|
| 22 |
"audio": f"{_DOMAIN}/audio.zip",
|
|
@@ -127,7 +124,6 @@ class bel_canto(datasets.GeneratorBasedBuilder):
|
|
| 127 |
random.shuffle(trainset)
|
| 128 |
random.shuffle(validset)
|
| 129 |
random.shuffle(testset)
|
| 130 |
-
|
| 131 |
return [
|
| 132 |
datasets.SplitGenerator(
|
| 133 |
name=datasets.Split.TRAIN, gen_kwargs={"files": trainset}
|
|
|
|
| 11 |
"singing_method": ["Folk_Singing", "Bel_Canto"],
|
| 12 |
}
|
| 13 |
|
| 14 |
+
_HOMEPAGE = f"https://www.modelscope.cn/datasets/ccmusic-database/{os.path.basename(__file__)[:-3]}"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
+
_DOMAIN = f"{_HOMEPAGE}/resolve/master/data"
|
| 17 |
|
| 18 |
_URLS = {
|
| 19 |
"audio": f"{_DOMAIN}/audio.zip",
|
|
|
|
| 124 |
random.shuffle(trainset)
|
| 125 |
random.shuffle(validset)
|
| 126 |
random.shuffle(testset)
|
|
|
|
| 127 |
return [
|
| 128 |
datasets.SplitGenerator(
|
| 129 |
name=datasets.Split.TRAIN, gen_kwargs={"files": trainset}
|