From e155d8eb225249463fb9f80d26ea7c012b5ab4d5 Mon Sep 17 00:00:00 2001 From: ekirts-h <94618885+ekirts-h@users.noreply.github.com> Date: Sat, 7 Dec 2024 20:19:09 +1300 Subject: [PATCH] Fix to disable BPE and VAD Swap the string "True" / "False" to boolean before passing as they always return True in if statement and does not properly disable the functions even when set to disable in webui. --- finetune.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/finetune.py b/finetune.py index 5077a94..e84ebf0 100644 --- a/finetune.py +++ b/finetune.py @@ -3870,9 +3870,9 @@ if __name__ == "__main__": fal_min_sample_length=pd_min_sample_length, fal_eval_split_number=pd_eval_split_number, fal_speaker_name_input=pd_speaker_name_input, - fal_create_bpe_tokenizer=pd_create_bpe_tokenizer, + fal_create_bpe_tokenizer= True if pd_create_bpe_tokenizer == "True" else False, fal_gradio_progress=pd_progress, - fal_use_vad=pd_use_vad, + fal_use_vad= True if pd_use_vad == "True" else False, fal_precision=pd_precision, ) except Exception: