From 17acfee5d0e8d0596307bec8462520adc109875a Mon Sep 17 00:00:00 2001 From: mrq Date: Thu, 21 Sep 2023 22:33:11 +0000 Subject: [PATCH] fixed culling for validation based on audio duration not working --- modules/tortoise-tts | 2 +- src/utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/tortoise-tts b/modules/tortoise-tts index b10c584..bf3b6c8 160000 --- a/modules/tortoise-tts +++ b/modules/tortoise-tts @@ -1 +1 @@ -Subproject commit b10c58436d6871c26485d30b203e6cfdd4167602 +Subproject commit bf3b6c87aa825295f64a31d010fd5e896fbcda43 diff --git a/src/utils.py b/src/utils.py index 9489683..0f56d49 100755 --- a/src/utils.py +++ b/src/utils.py @@ -2665,8 +2665,8 @@ def prepare_dataset( voice, use_segments=False, text_length=0, audio_length=0, p culled = len(text) < text_length - #if not culled and audio_length > 0: - # culled = duration < audio_length + if not culled and audio_length > 0: + culled = duration < audio_length line = f'audio/{file}|{phonemes if phonemize and phonemes else text}'