mirror of
https://github.com/wassname/TTS.git
synced 2026-10-27 12:30:27 +08:00
Remove select size bug
This commit is contained in:
1 parent
b533474e3b
commit
e656e8b108
1 file changed
+2
-2
@@ -321,7 +321,7 @@ def evaluate(model_G, criterion_G, model_D, criterion_D, ap, global_step, epoch)
|
||||
##############################
|
||||
|
||||
# generator pass
|
||||
y_hat = model_G(c_G)
|
||||
y_hat = model_G(c_G)[:, :, :y_G.size(2)]
|
||||
y_hat_sub = None
|
||||
y_G_sub = None
|
||||
|
||||
@@ -373,7 +373,7 @@ def evaluate(model_G, criterion_G, model_D, criterion_D, ap, global_step, epoch)
|
||||
if global_step >= c.steps_to_start_discriminator:
|
||||
# discriminator pass
|
||||
with torch.no_grad():
|
||||
y_hat = model_G(c_G)
|
||||
y_hat = model_G(c_G)[:, :, :y_G.size(2)]
|
||||
|
||||
# PQMF formatting
|
||||
if y_hat.shape[1] > 1:
|
||||
|
||||
Reference in new issue
Block a user