游雁
2024-05-22 55e7a2d880b3322fd89bdb1a27373ffbd842f280
wenetspeech
1个文件已修改
4 ■■■■ 已修改文件
funasr/bin/compute_audio_cmvn.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/bin/compute_audio_cmvn.py
@@ -73,9 +73,9 @@
        iter_stop = int(kwargs.get("scale", -1.0) * len(dataloader_train))
        log_step = iter_stop // 100
        if batch_idx % log_step == 0:
            print(f"prcessed: {batch_idx}/{iter_stop}")
            logging.info(f"prcessed: {batch_idx}/{iter_stop}")
        if batch_idx >= iter_stop and iter_stop > 0.0:
            print(f"prcessed: {iter_stop}/{iter_stop}")
            logging.info(f"prcessed: {iter_stop}/{iter_stop}")
            break
        fbank = batch["speech"].numpy()[0, :, :]