mirror of
https://github.com/wassname/TTS.git
synced 2026-10-29 12:51:00 +08:00
bug fix
This commit is contained in:
1 parent
1d3c0c8846
commit
7e799d58d6
1 file changed
+1
-1
@@ -75,7 +75,7 @@ def split_dataset(items):
|
||||
is_multi_speaker = len(set(speakers)) > 1
|
||||
eval_split_size = 500 if len(items) * 0.01 > 500 else int(
|
||||
len(items) * 0.01)
|
||||
assert len(eval_split_size) > 0, " [!] You do not have enough samples to train. You need at least 100 samples."
|
||||
assert eval_split_size > 0, " [!] You do not have enough samples to train. You need at least 100 samples."
|
||||
np.random.seed(0)
|
||||
np.random.shuffle(items)
|
||||
if is_multi_speaker:
|
||||
|
||||
Reference in new issue
Block a user