mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-07 23:48:48 +08:00
fix TTS.py
max_len = max(bert_max_len, phones_max_len) bert_max_len使用的是prompt_text+text的长度 phones_max_len却是text的长度
This commit is contained in:
parent
668631e752
commit
7d7c8a7ab9
@ -506,7 +506,7 @@ class TTS:
|
|||||||
# norm_text = item["norm_text"]
|
# norm_text = item["norm_text"]
|
||||||
|
|
||||||
bert_max_len = max(bert_max_len, all_bert_features.shape[-1])
|
bert_max_len = max(bert_max_len, all_bert_features.shape[-1])
|
||||||
phones_max_len = max(phones_max_len, phones.shape[-1])
|
phones_max_len = max(phones_max_len, all_phones.shape[-1])
|
||||||
|
|
||||||
phones_list.append(phones)
|
phones_list.append(phones)
|
||||||
phones_len_list.append(phones.shape[-1])
|
phones_len_list.append(phones.shape[-1])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user