From 1ad5afa4ab681fd27249136545199ee42be5defe Mon Sep 17 00:00:00 2001 From: Dahlia Urbach Date: Sat, 22 May 2021 09:05:29 +0300 Subject: [PATCH] close multiprocessing safely #27 --- panopticapi/evaluation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/panopticapi/evaluation.py b/panopticapi/evaluation.py index 26b4970..7857162 100755 --- a/panopticapi/evaluation.py +++ b/panopticapi/evaluation.py @@ -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