Skip to content

Commit

Permalink
fix typo (coqui-ai#2475)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitWang authored Apr 3, 2023
1 parent 91cf1b2 commit 95fa2c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TTS/tts/layers/losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class for each corresponding step.
return loss


class DifferentailSpectralLoss(nn.Module):
class DifferentialSpectralLoss(nn.Module):
"""Differential Spectral Loss
https://arxiv.org/ftp/arxiv/papers/1909/1909.10302.pdf"""

Expand Down Expand Up @@ -335,7 +335,7 @@ def __init__(self, c, ga_sigma=0.4):
self.criterion_ga = GuidedAttentionLoss(sigma=ga_sigma)
# differential spectral loss
if c.postnet_diff_spec_alpha > 0 or c.decoder_diff_spec_alpha > 0:
self.criterion_diff_spec = DifferentailSpectralLoss(loss_func=self.criterion)
self.criterion_diff_spec = DifferentialSpectralLoss(loss_func=self.criterion)
# ssim loss
if c.postnet_ssim_alpha > 0 or c.decoder_ssim_alpha > 0:
self.criterion_ssim = SSIMLoss()
Expand Down

0 comments on commit 95fa2c9

Please sign in to comment.