mirror of
https://github.com/shivammehta25/Matcha-TTS.git
synced 2026-02-04 09:49:21 +08:00
Fix a typo
This commit is contained in:
@@ -106,6 +106,7 @@ class MatchaTTS(BaseLightningClass): # 🍵
|
|||||||
# Lengths of mel spectrograms
|
# Lengths of mel spectrograms
|
||||||
"rtf": float,
|
"rtf": float,
|
||||||
# Real-time factor
|
# Real-time factor
|
||||||
|
}
|
||||||
"""
|
"""
|
||||||
# For RTF computation
|
# For RTF computation
|
||||||
t = dt.datetime.now()
|
t = dt.datetime.now()
|
||||||
@@ -152,7 +153,7 @@ class MatchaTTS(BaseLightningClass): # 🍵
|
|||||||
def forward(self, x, x_lengths, y, y_lengths, spks=None, out_size=None, cond=None, durations=None):
|
def forward(self, x, x_lengths, y, y_lengths, spks=None, out_size=None, cond=None, durations=None):
|
||||||
"""
|
"""
|
||||||
Computes 3 losses:
|
Computes 3 losses:
|
||||||
1. duration loss: loss between predicted token durations and those extracted by Monotinic Alignment Search (MAS).
|
1. duration loss: loss between predicted token durations and those extracted by Monotonic Alignment Search (MAS).
|
||||||
2. prior loss: loss between mel-spectrogram and encoder outputs.
|
2. prior loss: loss between mel-spectrogram and encoder outputs.
|
||||||
3. flow matching loss: loss between mel-spectrogram and decoder outputs.
|
3. flow matching loss: loss between mel-spectrogram and decoder outputs.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user