mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-09-29 17:10:02 +08:00
Handling cases where the length of semantic_phoneme may be 0
This commit is contained in:
parent
fdf794e31d
commit
b1b9e6e68e
@ -176,6 +176,9 @@ class Text2SemanticDataset(Dataset):
|
|||||||
|
|
||||||
min_num = 100 # 20直接不补#30补了也不存ckpt
|
min_num = 100 # 20直接不补#30补了也不存ckpt
|
||||||
leng = len(self.semantic_phoneme)
|
leng = len(self.semantic_phoneme)
|
||||||
|
print("leng: ", leng)
|
||||||
|
if leng == 0:
|
||||||
|
leng = min_num
|
||||||
if leng < min_num:
|
if leng < min_num:
|
||||||
tmp1 = self.semantic_phoneme
|
tmp1 = self.semantic_phoneme
|
||||||
tmp2 = self.item_names
|
tmp2 = self.item_names
|
||||||
|
Loading…
x
Reference in New Issue
Block a user