From 93b061fb4d85fb4c26bf88cf47de879a7ab187ad Mon Sep 17 00:00:00 2001 From: mrq Date: Wed, 22 Feb 2023 03:21:03 +0000 Subject: [PATCH] oops --- src/utils.py | 2 +- src/webui.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.py b/src/utils.py index 514dd83..57b491f 100755 --- a/src/utils.py +++ b/src/utils.py @@ -649,7 +649,7 @@ def optimize_training_settings( epochs, batch_size, learning_rate, learning_rate if half_p: messages.append("Half Precision requested. Please note this is ! EXPERIMENTAL !") - if not os.path.exists(get_halfp_model()): + if not os.path.exists(get_halfp_model_path()): convert_to_halfp() messages.append(f"For {epochs} epochs with {lines} lines in batches of {batch_size}, iterating for {iterations} steps ({int(iterations / epochs)} steps per epoch)") diff --git a/src/webui.py b/src/webui.py index e4edc55..bdb5e40 100755 --- a/src/webui.py +++ b/src/webui.py @@ -336,7 +336,7 @@ def setup_gradio(): with gr.Row(): with gr.Column(): result_voices = get_voice_list("./results/") - history_voices = gr.Dropdown(choices=result_voices, label="Voice", type="value", value=result_voices[0]) + history_voices = gr.Dropdown(choices=result_voices, label="Voice", type="value", value=result_voices[0] if len(results_voices) > 0 else "") with gr.Column(): history_results_list = gr.Dropdown(label="Results",type="value", interactive=True, value="") with gr.Column():