From ca1f8ee4230bfea4c213c69efdf395ec5e306846 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期四, 25 一月 2024 16:47:45 +0800
Subject: [PATCH] time_speech_total_per_sample=0, bugfix
---
funasr/auto/auto_model.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/funasr/auto/auto_model.py b/funasr/auto/auto_model.py
index 5bfc080..e774a8f 100644
--- a/funasr/auto/auto_model.py
+++ b/funasr/auto/auto_model.py
@@ -311,7 +311,7 @@
batch_size_ms_cum = 0
beg_idx = 0
beg_asr_total = time.time()
- time_speech_total_per_sample = speech_lengths/16000
+ time_speech_total_per_sample = speech_lengths/16000 + 1e-6
time_speech_total_all_samples += time_speech_total_per_sample
pbar_sample = tqdm(colour="blue", total=n + 1, dynamic_ncols=True)
--
Gitblit v1.9.1