From f5fab33e9caec751f0b929b458e807c49cc7e773 Mon Sep 17 00:00:00 2001 From: mrq Date: Thu, 24 Aug 2023 19:44:52 +0000 Subject: [PATCH] fixed defaults for vall-e backend --- src/webui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui.py b/src/webui.py index 329c237..3ab5012 100755 --- a/src/webui.py +++ b/src/webui.py @@ -408,10 +408,10 @@ def setup_gradio(): preset = gr.Radio( ["Ultra Fast", "Fast", "Standard", "High Quality"], label="Preset", type="value", value="Ultra Fast", visible=args.tts_backend=="tortoise" ) - GENERATE_SETTINGS["num_autoregressive_samples"] = gr.Slider(value=16, minimum=2, maximum=512, step=1, label="Samples", visible=args.tts_backend!="bark") + GENERATE_SETTINGS["num_autoregressive_samples"] = gr.Slider(value=16, minimum=2, maximum=2048 if args.tts_backend=="vall-e" else 512, step=1, label="Samples", visible=args.tts_backend!="bark") GENERATE_SETTINGS["diffusion_iterations"] = gr.Slider(value=30, minimum=0, maximum=512, step=1, label="Iterations", visible=args.tts_backend=="tortoise") - GENERATE_SETTINGS["temperature"] = gr.Slider(value=0.2, minimum=0, maximum=1, step=0.1, label="Temperature") + GENERATE_SETTINGS["temperature"] = gr.Slider(value=0.95 if args.tts_backend=="vall-e" else 0.2, minimum=0, maximum=1, step=0.1, label="Temperature") show_experimental_settings = gr.Checkbox(label="Show Experimental Settings", visible=args.tts_backend=="tortoise") reset_generate_settings_button = gr.Button(value="Reset to Default")