Spaces:
Running
on
Zero
Running
on
Zero
Update app_v1v2.py
Browse files- app_v1v2.py +5 -5
app_v1v2.py
CHANGED
@@ -21,7 +21,7 @@ if hasattr(torch._inductor.config, "fx_graph_cache"):
|
|
21 |
# Experimental feature to reduce compilation times, will be on by default in future
|
22 |
torch._inductor.config.fx_graph_cache = True
|
23 |
|
24 |
-
dtype = torch.
|
25 |
|
26 |
|
27 |
def load_v2_models():
|
@@ -154,7 +154,7 @@ def create_v2_interface():
|
|
154 |
"<br>请勾选 'convert style/emotion/accent' 以转换源音频的风格、情感或口音,否则仅执行音色转换。<br>"
|
155 |
"勾选 'anonymization only' 会无视参考音频而将源音频转换为某种由模型自身决定的 '平均音色'。<br>"
|
156 |
|
157 |
-
"Credits to [Vevo](https://github.com/open-mmlab/Amphion/tree/main/models/vc/vevo)"
|
158 |
)
|
159 |
inputs = [
|
160 |
gr.Audio(type="filepath", label="Source Audio / 源音频"),
|
@@ -178,9 +178,9 @@ def create_v2_interface():
|
|
178 |
]
|
179 |
|
180 |
examples = [
|
181 |
-
["examples/source/yae_0.wav", "examples/reference/dingzhen_0.wav", 25, 1.0, 0.
|
182 |
False],
|
183 |
-
["examples/source/jay_0.wav", "examples/reference/azuma_0.wav", 25, 1.0, 0.
|
184 |
]
|
185 |
|
186 |
outputs = [
|
@@ -221,6 +221,6 @@ def main(args):
|
|
221 |
|
222 |
if __name__ == "__main__":
|
223 |
parser = argparse.ArgumentParser()
|
224 |
-
parser.add_argument("--compile", type=bool, default=
|
225 |
args = parser.parse_args()
|
226 |
main(args)
|
|
|
21 |
# Experimental feature to reduce compilation times, will be on by default in future
|
22 |
torch._inductor.config.fx_graph_cache = True
|
23 |
|
24 |
+
dtype = torch.float16
|
25 |
|
26 |
|
27 |
def load_v2_models():
|
|
|
154 |
"<br>请勾选 'convert style/emotion/accent' 以转换源音频的风格、情感或口音,否则仅执行音色转换。<br>"
|
155 |
"勾选 'anonymization only' 会无视参考音频而将源音频转换为某种由模型自身决定的 '平均音色'。<br>"
|
156 |
|
157 |
+
"Credits to [Vevo](https://github.com/open-mmlab/Amphion/tree/main/models/vc/vevo), [MegaTTS3](https://github.com/bytedance/MegaTTS3)"
|
158 |
)
|
159 |
inputs = [
|
160 |
gr.Audio(type="filepath", label="Source Audio / 源音频"),
|
|
|
178 |
]
|
179 |
|
180 |
examples = [
|
181 |
+
["examples/source/yae_0.wav", "examples/reference/dingzhen_0.wav", 25, 1.0, 0.7, 0.7, 0.9, 1.0, 1.0, True,
|
182 |
False],
|
183 |
+
["examples/source/jay_0.wav", "examples/reference/azuma_0.wav", 25, 1.0, 0.7, 0.7, 0.9, 1.0, 1.0, True, False],
|
184 |
]
|
185 |
|
186 |
outputs = [
|
|
|
221 |
|
222 |
if __name__ == "__main__":
|
223 |
parser = argparse.ArgumentParser()
|
224 |
+
parser.add_argument("--compile", type=bool, default=True)
|
225 |
args = parser.parse_args()
|
226 |
main(args)
|