We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19a527b commit 2ba7212Copy full SHA for 2ba7212
1 file changed
training/variance_task.py
@@ -281,6 +281,7 @@ def sample_get(key, idx, abs_idx):
281
gt_pitch = sample_get('pitch', i, data_idx)
282
mask = (sample_get('mel2ph', i, data_idx) > 0) & ~sample_get('uv', i, data_idx)
283
self.valid_metrics['pitch_acc'].update(pred=pred_pitch, target=gt_pitch, mask=mask)
284
+ self.valid_metrics['pitch_r2'].update(pred=pred_pitch, target=gt_pitch, mask=mask)
285
self.plot_pitch(
286
data_idx,
287
gt_pitch=gt_pitch,
0 commit comments