Upload folder using huggingface_hub
Browse files- seedtts_testset.py +1 -0
- test_demo.py +2 -2
seedtts_testset.py
CHANGED
|
@@ -107,3 +107,4 @@ class SeedTTSDataset(datasets.GeneratorBasedBuilder):
|
|
| 107 |
|
| 108 |
yield idx, item
|
| 109 |
|
|
|
|
|
|
| 107 |
|
| 108 |
yield idx, item
|
| 109 |
|
| 110 |
+
|
test_demo.py
CHANGED
|
@@ -28,8 +28,8 @@ for config, split in [
|
|
| 28 |
]:
|
| 29 |
data = load_dataset(repo_dir, config, trust_remote_code=True, split=split)
|
| 30 |
for item in data:
|
| 31 |
-
for key in item.items():
|
| 32 |
if key in ['audio_ground_truth', 'prompt_audio', ] and value:
|
| 33 |
-
assert os.path.exists(
|
| 34 |
print("len of {} {}: {}".format(config, split, len(data)))
|
| 35 |
|
|
|
|
| 28 |
]:
|
| 29 |
data = load_dataset(repo_dir, config, trust_remote_code=True, split=split)
|
| 30 |
for item in data:
|
| 31 |
+
for key, value in item.items():
|
| 32 |
if key in ['audio_ground_truth', 'prompt_audio', ] and value:
|
| 33 |
+
assert os.path.exists(value), f'path not exist: {value}'
|
| 34 |
print("len of {} {}: {}".format(config, split, len(data)))
|
| 35 |
|