(self, batch_idx, spec, spec_out, name=None)
| 287 | # validation plots |
| 288 | ############ |
| 289 | def plot_mel(self, batch_idx, spec, spec_out, name=None): |
| 290 | spec_cat = torch.cat([spec, spec_out], -1) |
| 291 | name = f'mel_{batch_idx}' if name is None else name |
| 292 | vmin = hparams['mel_vmin'] |
| 293 | vmax = hparams['mel_vmax'] |
| 294 | self.logger.experiment.add_figure(name, spec_to_figure(spec_cat[0], vmin, vmax), self.global_step) |
| 295 | |
| 296 | def plot_dur(self, batch_idx, sample, model_out): |
| 297 | T_txt = sample['txt_tokens'].shape[1] |
no test coverage detected