mirror of
https://github.com/wassname/TTS.git
synced 2026-09-11 12:00:24 +08:00
bug fix
This commit is contained in:
@@ -239,6 +239,9 @@ def evaluate(model, criterion, criterion_st, data_loader, current_step):
|
||||
mel_lengths = data[4]
|
||||
stop_target = data[5]
|
||||
|
||||
stop_target = stop_target.view(c.batch_size, stop_target.size(1) // c.r, -1)
|
||||
stop_target = (stop_target.sum(2) > 0.0).float().unsqueeze(2)
|
||||
|
||||
# dispatch data to GPU
|
||||
if use_cuda:
|
||||
text_input = text_input.cuda()
|
||||
|
||||
Reference in New Issue
Block a user