Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyanyi committed Mar 4, 2022
1 parent ac3f64d commit e0eb8ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmrotate/core/evaluation/eval_map.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) OpenMMLab. All rights reserved.
from multiprocessing import Pool
from multiprocessing import get_context

import numpy as np
import torch
Expand Down Expand Up @@ -170,7 +170,7 @@ def eval_map(det_results,
area_ranges = ([(rg[0]**2, rg[1]**2) for rg in scale_ranges]
if scale_ranges is not None else None)

pool = Pool(nproc)
pool = get_context('spawn').Pool(nproc)
eval_results = []
for i in range(num_classes):
# get gt and det bboxes of this class
Expand Down

0 comments on commit e0eb8ca

Please sign in to comment.