mirror of https://github.com/coqui-ai/TTS.git
fix eval iter
This commit is contained in:
parent
a3a840fd78
commit
b4c2cf80f2
|
@ -309,19 +309,25 @@ if __name__ == '__main__':
|
|||
|
||||
# forward pass model
|
||||
with torch.cuda.amp.autocast(enabled=c.mixed_precision):
|
||||
decoder_output, dur_output, dur_mas_output, alignments, mu, log_sigma, logp_max_path = model.forward(
|
||||
decoder_output, dur_output, dur_mas_output, alignments, _, _, logp = model.forward(
|
||||
text_input,
|
||||
text_lengths,
|
||||
mel_targets,
|
||||
mel_lengths,
|
||||
g=speaker_c)
|
||||
g=speaker_c,
|
||||
phase=training_phase)
|
||||
|
||||
# compute loss
|
||||
loss_dict = criterion(logp,
|
||||
decoder_output,
|
||||
mel_targets,
|
||||
mel_lengths,
|
||||
dur_output,
|
||||
dur_mas_output,
|
||||
text_lengths,
|
||||
global_step,
|
||||
phase=training_phase)
|
||||
|
||||
# compute loss
|
||||
loss_dict = criterion(mu, log_sigma, logp_max_path,
|
||||
decoder_output, mel_targets,
|
||||
mel_lengths, dur_output,
|
||||
dur_mas_output, text_lengths,
|
||||
global_step, training_phase)
|
||||
|
||||
# step time
|
||||
step_time = time.time() - start_time
|
||||
|
|
Loading…
Reference in New Issue