Skip to content

Commit

Permalink
Transforming iterable to list to create tqdm bar
Browse files Browse the repository at this point in the history
  • Loading branch information
ancestor-mithril committed Jul 29, 2024
1 parent 7923ed8 commit 437043c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dice_score_3d/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ def execute_evaluate_predictions(gt_files: List[str], pred_files: List[str], reo
""" Execute the prediction evaluation sequentially or in parallel.
"""
if num_workers == 0:
ret = [evaluate_prediction(gt, pred, reorient, dtype, indices) for gt, pred in tqdm(zip(gt_files, pred_files))]
ret = [evaluate_prediction(gt, pred, reorient, dtype, indices) for gt, pred in tqdm(
list(zip(gt_files, pred_files)))]
else:
ret = process_map(evaluate_prediction_wrapper,
[(gt, pred, reorient, dtype, indices) for gt, pred in zip(gt_files, pred_files)],
Expand Down

0 comments on commit 437043c

Please sign in to comment.