csukuangfj
commited on
Commit
•
18a0605
1
Parent(s):
905e5e6
update
Browse files- vits-mimic3.py +3 -0
vits-mimic3.py
CHANGED
@@ -34,6 +34,9 @@ def generate_tokens():
|
|
34 |
if not line:
|
35 |
continue
|
36 |
idx, token = line.split()
|
|
|
|
|
|
|
37 |
token2id[token] = int(idx)
|
38 |
token2id[" "] = 0
|
39 |
|
|
|
34 |
if not line:
|
35 |
continue
|
36 |
idx, token = line.split()
|
37 |
+
if len(token) > 1:
|
38 |
+
print(f"skip token {token}")
|
39 |
+
continue
|
40 |
token2id[token] = int(idx)
|
41 |
token2id[" "] = 0
|
42 |
|