Spaces:
Running
Running
Create spec_gen.py
Browse files- spec_gen.py +22 -0
spec_gen.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from data_utils import TextAudioSpeakerLoader
|
2 |
+
import json
|
3 |
+
from tqdm import tqdm
|
4 |
+
|
5 |
+
from utils import HParams
|
6 |
+
|
7 |
+
config_path = 'configs/config.json'
|
8 |
+
with open(config_path, "r") as f:
|
9 |
+
data = f.read()
|
10 |
+
config = json.loads(data)
|
11 |
+
hps = HParams(**config)
|
12 |
+
|
13 |
+
train_dataset = TextAudioSpeakerLoader("filelists/train.txt", hps)
|
14 |
+
test_dataset = TextAudioSpeakerLoader("filelists/test.txt", hps)
|
15 |
+
eval_dataset = TextAudioSpeakerLoader("filelists/val.txt", hps)
|
16 |
+
|
17 |
+
for _ in tqdm(train_dataset):
|
18 |
+
pass
|
19 |
+
for _ in tqdm(eval_dataset):
|
20 |
+
pass
|
21 |
+
for _ in tqdm(test_dataset):
|
22 |
+
pass
|