Skip to content

Commit

Permalink
[v0.2.0] Fixed bugs in vocoder validation
Browse files Browse the repository at this point in the history
  • Loading branch information
dunky11 committed Jun 11, 2022
1 parent 31cb02b commit 237bd26
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/voice_smith/vocoder_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,12 @@ def evaluate(
preprocess_config: PreprocessingConfig,
):
generator.eval()
loss_means = {"mel_loss": 0, "pesq": 0, "estoi": 0, "rmse": 0}
loss_means = {
"mel_loss": torch.FloatTensor([0.0]).to(device),
"pesq": torch.FloatTensor([0.0]).to(device),
"estoi": torch.FloatTensor([0.0]).to(device),
"rmse": torch.FloatTensor([0.0]).to(device),
}
len_group = 0
len_group_pesq = 0
batch_size = 0
Expand Down

0 comments on commit 237bd26

Please sign in to comment.