hhqx commited on
Commit
9537716
·
verified ·
1 Parent(s): 82ad42e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -4
README.md CHANGED
@@ -75,13 +75,18 @@ Original repo from: [https://github.com/BytedanceSpeech/seed-tts-eval](https://g
75
  ```python
76
 
77
  # makesure: pip install datasets==3.5.1
 
 
78
  from datasets import load_dataset
79
 
80
- # Load English dataset
81
- ds_en = load_dataset("path/to/seedtts-dataset-repo", "en")
 
 
 
 
 
82
 
83
- # Load Chinese dataset
84
- ds_zh = load_dataset("path/to/seedtts-dataset-repo", "zh")
85
 
86
  # Access specific splits
87
  en_wer = ds_en['test_wer']
@@ -90,6 +95,21 @@ en_sim = ds_en['test_sim']
90
  zh_wer = ds_zh['test_wer']
91
  zh_sim = ds_zh['test_sim']
92
  zh_hardcase = ds_zh['test_wer_hardcase']
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  ```
94
 
95
  ---
 
75
  ```python
76
 
77
  # makesure: pip install datasets==3.5.1
78
+
79
+ import os
80
  from datasets import load_dataset
81
 
82
+ repo_dir = "hhqx/seedtts_testset"
83
+
84
+ ds_en = load_dataset(repo_dir, 'en', trust_remote_code=True)
85
+ print(ds_en['test_wer'][0])
86
+
87
+ ds_zh = load_dataset(repo_dir, 'zh', trust_remote_code=True)
88
+ print(ds_zh['test_sim'][0])
89
 
 
 
90
 
91
  # Access specific splits
92
  en_wer = ds_en['test_wer']
 
95
  zh_wer = ds_zh['test_wer']
96
  zh_sim = ds_zh['test_sim']
97
  zh_hardcase = ds_zh['test_wer_hardcase']
98
+
99
+
100
+ for config, split in [
101
+ ['en', 'test_wer'],
102
+ ['en', 'test_sim'],
103
+ ['zh', 'test_wer'],
104
+ ['zh', 'test_sim'],
105
+ ['zh', 'test_wer_hardcase'],
106
+ ]:
107
+ data = load_dataset(repo_dir, config, trust_remote_code=True, split=split)
108
+ for item in data:
109
+ for key, value in item.items():
110
+ if key in ['audio_ground_truth', 'prompt_audio', ] and value:
111
+ assert os.path.exists(value), f'path not exist: {value}'
112
+ print("len of {} {}: {}".format(config, split, len(data)))
113
  ```
114
 
115
  ---