Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimised inference pipeline #104

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ exp_output/
*.npz
*.png
*.log

# chunk feature maps
*.h5
11 changes: 1 addition & 10 deletions infer/wsi.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import multiprocessing as mp
from concurrent.futures import FIRST_EXCEPTION, ProcessPoolExecutor, as_completed, wait
from multiprocessing import Lock, Pool
from multiprocessing import Pool

mp.set_start_method("spawn", True) # ! must be at top for VScode debugging

Expand Down Expand Up @@ -38,15 +38,6 @@

from . import base

thread_lock = Lock()


####
def _init_worker_child(lock_):
global lock
lock = lock_


####
def _remove_inst(inst_map, remove_id_list):
"""Remove instances with id in remove_id_list.
Expand Down
Loading