Skip to content

VITS avg_loss_0 and avg_loss_disc are identical #170

Answered by eginhard
MedAymenF asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, they're always equal:

loss = 0.0
return_dict = {}
loss_disc, loss_disc_real, _ = self.discriminator_loss(
scores_real=scores_disc_real, scores_fake=scores_disc_fake
)
return_dict["loss_disc"] = loss_disc * self.disc_loss_alpha
loss = loss + return_dict["loss_disc"]
return_dict["loss"] = loss

Having it named loss_disc helps to tell what the loss means. I'm not sure if the other one could be safely removed or if that's a standard name that Coqui expects to be there.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MedAymenF
Comment options

Answer selected by MedAymenF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
VITS Anything related to VITS/YourTTS/Fairseq models
2 participants