Skip to content

Commit

Permalink
fix data loader on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarthur committed Oct 11, 2024
1 parent f7144ac commit 69270d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import tifffile

import signal
from multiprocessing import Process, Queue, cpu_count
from multiprocessing import Process, Queue, cpu_count, set_start_method

import importlib

Expand All @@ -42,6 +42,8 @@
processes = {}
offsets = {}

set_start_method('fork')

def term(signum, frame):
for ps in processes.values():
for p in ps:
Expand Down

0 comments on commit 69270d2

Please sign in to comment.