mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
auto frontend
This commit is contained in:
parent
db9ec58cb4
commit
f64bbaa036
@ -60,7 +60,7 @@ class AutoFrontend:
|
|||||||
|
|
||||||
result_list = []
|
result_list = []
|
||||||
num_samples = len(data_list)
|
num_samples = len(data_list)
|
||||||
pbar = tqdm(colour="blue", total=num_samples + 1, dynamic_ncols=True)
|
# pbar = tqdm(colour="blue", total=num_samples + 1, dynamic_ncols=True)
|
||||||
|
|
||||||
time0 = time.perf_counter()
|
time0 = time.perf_counter()
|
||||||
for beg_idx in range(0, num_samples, batch_size):
|
for beg_idx in range(0, num_samples, batch_size):
|
||||||
@ -99,11 +99,11 @@ class AutoFrontend:
|
|||||||
}
|
}
|
||||||
result_list.append(batch)
|
result_list.append(batch)
|
||||||
|
|
||||||
pbar.update(1)
|
# pbar.update(1)
|
||||||
description = f"{meta_data}, "
|
# description = f"{meta_data}, "
|
||||||
pbar.set_description(description)
|
# pbar.set_description(description)
|
||||||
|
|
||||||
time_end = time.perf_counter()
|
time_end = time.perf_counter()
|
||||||
pbar.set_description(f"time escaped total: {time_end - time0:0.3f}")
|
# pbar.set_description(f"time escaped total: {time_end - time0:0.3f}")
|
||||||
|
|
||||||
return result_list
|
return result_list
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user