mirror of https://github.com/coqui-ai/TTS.git
bug fix for rwd discriminator
This commit is contained in:
parent
189227c741
commit
c5c3f6094c
|
@ -327,8 +327,12 @@ def evaluate(model_G, criterion_G, model_D, ap, global_step, epoch):
|
||||||
y_hat = model_G.pqmf_synthesis(y_hat)
|
y_hat = model_G.pqmf_synthesis(y_hat)
|
||||||
y_G_sub = model_G.pqmf_analysis(y_G)
|
y_G_sub = model_G.pqmf_analysis(y_G)
|
||||||
|
|
||||||
|
if len(signature(model_D.forward).parameters) == 2:
|
||||||
|
D_out_fake = model_D(y_hat, c_G)
|
||||||
|
else:
|
||||||
D_out_fake = model_D(y_hat)
|
D_out_fake = model_D(y_hat)
|
||||||
D_out_real = None
|
D_out_real = None
|
||||||
|
|
||||||
if c.use_feat_match_loss:
|
if c.use_feat_match_loss:
|
||||||
with torch.no_grad():
|
with torch.no_grad():
|
||||||
D_out_real = model_D(y_G)
|
D_out_real = model_D(y_G)
|
||||||
|
|
Loading…
Reference in New Issue