Skip to content

Commit 75d7c03

Browse files
authored
fix v2 onnx export
1 parent f349adc commit 75d7c03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

infer-web.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,7 @@ def export_onnx(ModelPath, ExportedPath, MoeVS=True):
18261826
[ckpt_path2, save_name, sr__, if_f0__, info___, version_1],
18271827
info7,
18281828
)
1829-
1829+
18301830
with gr.TabItem(i18n("Onnx导出")):
18311831
with gr.Row():
18321832
ckpt_dir = gr.Textbox(label=i18n("RVC模型路径"), value="", interactive=True)
@@ -1835,8 +1835,8 @@ def export_onnx(ModelPath, ExportedPath, MoeVS=True):
18351835
label=i18n("Onnx输出路径"), value="", interactive=True
18361836
)
18371837
with gr.Row():
1838-
moevs = gr.Checkbox(label=i18n("MoeVS模型"), value=True)
1839-
infoOnnx = gr.Label(label="Null")
1838+
moevs = gr.Checkbox(label=i18n("MoeVS模型"), value=False,visible=False)
1839+
infoOnnx = gr.Label(label="info")
18401840
with gr.Row():
18411841
butOnnx = gr.Button(i18n("导出Onnx模型"), variant="primary")
18421842
butOnnx.click(export_onnx, [ckpt_dir, onnx_dir, moevs], infoOnnx)

0 commit comments

Comments
 (0)