Skip to content

Commit

Permalink
adding total to tqdm iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
chanind committed May 6, 2022
1 parent 49a01f3 commit 058a12c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frame_semantic_transformer/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ def evaluate(
batch_size: int = 10,
) -> dict[str, list[int]]:
results: dict[str, list[int]] = {"frame": [0, 0, 0], "args": [0, 0, 0]}
for samples_chunk in tqdm(chunk_list(samples, batch_size)):
for samples_chunk in tqdm(
chunk_list(samples, batch_size), total=len(samples) / batch_size
):
frame_inputs: list[str] = []
args_inputs: list[str] = []
expected_frame_outputs: list[str] = []
Expand Down

0 comments on commit 058a12c

Please sign in to comment.