Просмотр исходного кода

time_speech_total_per_sample=0, bugfix

游雁 2 лет назад
Родитель
Сommit
ca1f8ee423
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      funasr/auto/auto_model.py

+ 1 - 1
funasr/auto/auto_model.py

@@ -311,7 +311,7 @@ class AutoModel:
             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)