mirror of
https://github.com/wassname/TTS.git
synced 2026-09-10 11:50:20 +08:00
init durations = None
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user