Skip to content

Commit

Permalink
close multiprocessing safely cocodataset#27
Browse files Browse the repository at this point in the history
  • Loading branch information
dahliau authored May 22, 2021
1 parent 118ffab commit 1ad5afa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions panopticapi/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def pq_compute_multi_core(matched_annotations_list, gt_folder, pred_folder, cate
pq_stat = PQStat()
for p in processes:
pq_stat += p.get()
workers.close()
return pq_stat


Expand Down

0 comments on commit 1ad5afa

Please sign in to comment.