enable v101
Browse files- .gitignore +2 -1
- infer.py +13 -12
.gitignore
CHANGED
@@ -159,4 +159,5 @@ cython_debug/
|
|
159 |
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
160 |
#.idea/
|
161 |
|
162 |
-
.DS_Store
|
|
|
|
159 |
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
160 |
#.idea/
|
161 |
|
162 |
+
.DS_Store
|
163 |
+
.idea/
|
infer.py
CHANGED
@@ -19,25 +19,26 @@ import numpy as np
|
|
19 |
from models import SynthesizerTrn
|
20 |
from text.symbols import symbols
|
21 |
|
22 |
-
|
23 |
-
|
24 |
# from oldVersion.V200.models import SynthesizerTrn as V200SynthesizerTrn
|
25 |
# from oldVersion.V200.text import symbols as V200symbols
|
26 |
# from oldVersion.V111.models import SynthesizerTrn as V111SynthesizerTrn
|
27 |
# from oldVersion.V111.text import symbols as V111symbols
|
28 |
# from oldVersion.V110.models import SynthesizerTrn as V110SynthesizerTrn
|
29 |
# from oldVersion.V110.text import symbols as V110symbols
|
30 |
-
|
31 |
-
|
32 |
|
33 |
# from oldVersion import V111, V110, V101, V200, V210
|
|
|
34 |
|
35 |
# 当前版本信息
|
36 |
latest_version = "2.3"
|
37 |
|
38 |
# 版本兼容
|
39 |
SynthesizerTrnMap = {
|
40 |
-
|
41 |
# "2.0.2-fix": V200SynthesizerTrn,
|
42 |
# "2.0.1": V200SynthesizerTrn,
|
43 |
# "2.0": V200SynthesizerTrn,
|
@@ -45,13 +46,13 @@ SynthesizerTrnMap = {
|
|
45 |
# "1.1.1": V111SynthesizerTrn,
|
46 |
# "1.1": V110SynthesizerTrn,
|
47 |
# "1.1.0": V110SynthesizerTrn,
|
48 |
-
|
49 |
# "1.0": V101SynthesizerTrn,
|
50 |
# "1.0.0": V101SynthesizerTrn,
|
51 |
}
|
52 |
|
53 |
symbolsMap = {
|
54 |
-
|
55 |
# "2.0.2-fix": V200symbols,
|
56 |
# "2.0.1": V200symbols,
|
57 |
# "2.0": V200symbols,
|
@@ -59,7 +60,7 @@ symbolsMap = {
|
|
59 |
# "1.1.1": V111symbols,
|
60 |
# "1.1": V110symbols,
|
61 |
# "1.1.0": V110symbols,
|
62 |
-
|
63 |
# "1.0": V101symbols,
|
64 |
# "1.0.0": V101symbols,
|
65 |
}
|
@@ -163,9 +164,9 @@ def infer(
|
|
163 |
):
|
164 |
# 2.2版本参数位置变了
|
165 |
# 2.1 参数新增 emotion reference_audio skip_start skip_end
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
# 支持中日英三语版本
|
170 |
inferMap_V2 = {
|
171 |
# "2.0.2-fix": V200.infer,
|
@@ -179,7 +180,7 @@ def infer(
|
|
179 |
# 仅支持中文版本
|
180 |
# 在测试中,并未发现两个版本的模型不能互相通用
|
181 |
inferMap_V1 = {
|
182 |
-
|
183 |
# "1.0": V101.infer,
|
184 |
# "1.0.0": V101.infer,
|
185 |
}
|
|
|
19 |
from models import SynthesizerTrn
|
20 |
from text.symbols import symbols
|
21 |
|
22 |
+
from oldVersion.V210.models import SynthesizerTrn as V210SynthesizerTrn
|
23 |
+
from oldVersion.V210.text import symbols as V210symbols
|
24 |
# from oldVersion.V200.models import SynthesizerTrn as V200SynthesizerTrn
|
25 |
# from oldVersion.V200.text import symbols as V200symbols
|
26 |
# from oldVersion.V111.models import SynthesizerTrn as V111SynthesizerTrn
|
27 |
# from oldVersion.V111.text import symbols as V111symbols
|
28 |
# from oldVersion.V110.models import SynthesizerTrn as V110SynthesizerTrn
|
29 |
# from oldVersion.V110.text import symbols as V110symbols
|
30 |
+
from oldVersion.V101.models import SynthesizerTrn as V101SynthesizerTrn
|
31 |
+
from oldVersion.V101.text import symbols as V101symbols
|
32 |
|
33 |
# from oldVersion import V111, V110, V101, V200, V210
|
34 |
+
from oldVersion import V101, V210
|
35 |
|
36 |
# 当前版本信息
|
37 |
latest_version = "2.3"
|
38 |
|
39 |
# 版本兼容
|
40 |
SynthesizerTrnMap = {
|
41 |
+
"2.1": V210SynthesizerTrn,
|
42 |
# "2.0.2-fix": V200SynthesizerTrn,
|
43 |
# "2.0.1": V200SynthesizerTrn,
|
44 |
# "2.0": V200SynthesizerTrn,
|
|
|
46 |
# "1.1.1": V111SynthesizerTrn,
|
47 |
# "1.1": V110SynthesizerTrn,
|
48 |
# "1.1.0": V110SynthesizerTrn,
|
49 |
+
"1.0.1": V101SynthesizerTrn,
|
50 |
# "1.0": V101SynthesizerTrn,
|
51 |
# "1.0.0": V101SynthesizerTrn,
|
52 |
}
|
53 |
|
54 |
symbolsMap = {
|
55 |
+
"2.1": V210symbols,
|
56 |
# "2.0.2-fix": V200symbols,
|
57 |
# "2.0.1": V200symbols,
|
58 |
# "2.0": V200symbols,
|
|
|
60 |
# "1.1.1": V111symbols,
|
61 |
# "1.1": V110symbols,
|
62 |
# "1.1.0": V110symbols,
|
63 |
+
"1.0.1": V101symbols,
|
64 |
# "1.0": V101symbols,
|
65 |
# "1.0.0": V101symbols,
|
66 |
}
|
|
|
164 |
):
|
165 |
# 2.2版本参数位置变了
|
166 |
# 2.1 参数新增 emotion reference_audio skip_start skip_end
|
167 |
+
inferMap_V3 = {
|
168 |
+
"2.1": V210.infer,
|
169 |
+
}
|
170 |
# 支持中日英三语版本
|
171 |
inferMap_V2 = {
|
172 |
# "2.0.2-fix": V200.infer,
|
|
|
180 |
# 仅支持中文版本
|
181 |
# 在测试中,并未发现两个版本的模型不能互相通用
|
182 |
inferMap_V1 = {
|
183 |
+
"1.0.1": V101.infer,
|
184 |
# "1.0": V101.infer,
|
185 |
# "1.0.0": V101.infer,
|
186 |
}
|