Skip to content

Commit 2ba7212

Browse files
committed
Fix pitch_r2 not working
1 parent 19a527b commit 2ba7212

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

training/variance_task.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ def sample_get(key, idx, abs_idx):
281281
gt_pitch = sample_get('pitch', i, data_idx)
282282
mask = (sample_get('mel2ph', i, data_idx) > 0) & ~sample_get('uv', i, data_idx)
283283
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)
284285
self.plot_pitch(
285286
data_idx,
286287
gt_pitch=gt_pitch,

0 commit comments

Comments
 (0)