mirror of https://github.com/coqui-ai/TTS.git
init `durations = None`
This commit is contained in:
parent
2e31659dd9
commit
c09622459e
|
@ -351,6 +351,7 @@ class TrainerTTS:
|
|||
speaker_ids = None
|
||||
|
||||
# compute durations from attention masks
|
||||
durations = None
|
||||
if attn_mask is not None:
|
||||
durations = torch.zeros(attn_mask.shape[0], attn_mask.shape[2])
|
||||
for idx, am in enumerate(attn_mask):
|
||||
|
|
Loading…
Reference in New Issue