This commit is contained in:
游雁 2023-09-18 10:49:27 +08:00
parent 2bd8241948
commit 895d84f24d
2 changed files with 2 additions and 2 deletions

View File

@ -652,7 +652,7 @@ def inference_paraformer_vad_punc(
batch_size_token_ms_cum = 0
beg_idx = 0
beg_asr_total = time.time()
for j, _ in tqdm(enumerate(range(0, n))):
for j, _ in enumerate(tqdm(range(0, n))):
batch_size_token_ms_cum += (sorted_data[j][0][1] - sorted_data[j][0][0])
if j < n - 1 and (batch_size_token_ms_cum + sorted_data[j + 1][0][1] - sorted_data[j + 1][0][0]) < batch_size_token_ms and (sorted_data[j + 1][0][1] - sorted_data[j + 1][0][0]) < batch_size_token_threshold_s:
continue

View File

@ -1 +1 @@
0.7.7
0.7.8