Skip to content

Commit

Permalink
mp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andreped committed Dec 31, 2021
1 parent 389f144 commit 0650884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion livermask/utils/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def intensity_normalization(volume, intensity_clipping_range):

def liver_segmenter_wrapper(curr, output, cpu, verbose, multiple_flag, name):
# run inference in a different process
mp.set_start_method('spawn')
mp.set_start_method('spawn', force=True)
with mp.Pool(processes=1, maxtasksperchild=1) as p: # , initializer=initializer)
result = p.map_async(liver_segmenter, ((curr, output, cpu, verbose, multiple_flag, name), ))
log.info("getting result from process...")
Expand Down

0 comments on commit 0650884

Please sign in to comment.