MCPcopy Index your code
hub / github.com/MoonInTheRiver/DiffSinger / plot_pitch

Method plot_pitch

tasks/tts/pe.py:139–144  ·  view source on GitHub ↗
(self, batch_idx, model_out, sample)

Source from the content-addressed store, hash-verified

137 return losses, output
138
139 def plot_pitch(self, batch_idx, model_out, sample):
140 gt_f0 = denorm_f0(sample['f0'], sample['uv'], hparams)
141 self.logger.experiment.add_figure(
142 f'f0_{batch_idx}',
143 f0_to_figure(gt_f0[0], None, model_out['f0_denorm_pred'][0]),
144 self.global_step)
145
146 def add_pitch_loss(self, output, sample, losses):
147 # mel2ph = sample['mel2ph'] # [B, T_s]

Callers 1

validation_stepMethod · 0.95

Calls 2

denorm_f0Function · 0.90
f0_to_figureFunction · 0.90

Tested by

no test coverage detected