Skip to content

Commit a96c33d

Browse files
committed
Restore a logging warning that was accidentally removed.
Signed-off-by: Fejgin, Roy <rfejgin@nvidia.com>
1 parent 38b0ea3 commit a96c33d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nemo/collections/tts/modules/magpietts_inference/evaluate_generated_audio.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,9 @@ def compute_global_metrics(
652652
else:
653653
avg_metrics['cer_gt_audio_cumulative'] = float('NaN')
654654
avg_metrics['wer_gt_audio_cumulative'] = float('NaN')
655+
logging.warning(
656+
"Ground truth audio files are missing. Setting cumulative CER and WER for ground truth audio to NaN."
657+
)
655658

656659
avg_metrics['utmosv2_avg'] = sum(m['utmosv2'] for m in filewise_metrics) / n
657660
avg_metrics['total_gen_audio_seconds'] = sum(m['total_gen_audio_seconds'] for m in filewise_metrics)

0 commit comments

Comments
 (0)