Skip to content

Commit

Permalink
logger.py: compatibility with new tensorboardX
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelvalle committed Dec 12, 2019
1 parent 70d37f9 commit 37a033d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ def log_validation(self, reduced_loss, model, y, y_pred, iteration):
self.add_image(
"alignment",
plot_alignment_to_numpy(alignments[idx].data.cpu().numpy().T),
iteration)
iteration, dataformats='HWC')
self.add_image(
"mel_target",
plot_spectrogram_to_numpy(mel_targets[idx].data.cpu().numpy()),
iteration)
iteration, dataformats='HWC')
self.add_image(
"mel_predicted",
plot_spectrogram_to_numpy(mel_outputs[idx].data.cpu().numpy()),
iteration)
iteration, dataformats='HWC')
self.add_image(
"gate",
plot_gate_outputs_to_numpy(
gate_targets[idx].data.cpu().numpy(),
torch.sigmoid(gate_outputs[idx]).data.cpu().numpy()),
iteration)
iteration, dataformats='HWC')

0 comments on commit 37a033d

Please sign in to comment.