mirror of
https://github.com/shivammehta25/Matcha-TTS.git
synced 2026-02-05 18:29:19 +08:00
Adding saving phones while getting durations from matcha
This commit is contained in:
@@ -121,7 +121,7 @@ class MatchaTTS(BaseLightningClass): # 🍵
|
||||
logw = self.dp(enc_output, x_mask)
|
||||
|
||||
w = torch.exp(logw) * x_mask
|
||||
w_ceil = torch.round(w) * length_scale
|
||||
w_ceil = torch.ceil(w) * length_scale
|
||||
# print(w_ceil)
|
||||
y_lengths = torch.clamp_min(torch.sum(w_ceil, [1, 2]), 1).long()
|
||||
y_max_length = y_lengths.max()
|
||||
|
||||
Reference in New Issue
Block a user