time_speech_total_per_sample=0, bugfix

This commit is contained in:
游雁 2024-01-25 16:47:45 +08:00
parent 0b325fe147
commit ca1f8ee423

View File

@ -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)