Skip to content

Commit 0650884

Browse files
committed
mp fix
1 parent 389f144 commit 0650884

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

livermask/utils/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def intensity_normalization(volume, intensity_clipping_range):
3939

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

0 commit comments

Comments
 (0)