fix progress bar for batch_size (#1917)

This commit is contained in:
彭震东 2024-07-15 17:54:27 +08:00 committed by GitHub
parent 0fe232fd7b
commit f2ed4b3856
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -315,7 +315,7 @@ class AutoModel:
speed_stats["rtf"] = f"{(time_escape) / batch_data_time:0.3f}" speed_stats["rtf"] = f"{(time_escape) / batch_data_time:0.3f}"
description = f"{speed_stats}, " description = f"{speed_stats}, "
if pbar: if pbar:
pbar.update(1) pbar.update(end_idx - beg_idx)
pbar.set_description(description) pbar.set_description(description)
time_speech_total += batch_data_time time_speech_total += batch_data_time
time_escape_total += time_escape time_escape_total += time_escape