Skip to content

Commit

Permalink
feat: add comments to tune_threads.py for clarity on computational co…
Browse files Browse the repository at this point in the history
…st values and thread tuning options
  • Loading branch information
rhoadesScholar committed Feb 4, 2025
1 parent 69833c6 commit 569a5a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/internal_use/tune_threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from cellmap_segmentation_challenge.utils import TEST_CROPS
from cellmap_segmentation_challenge.evaluate import INSTANCE_CLASSES

# THESE ARE MADE UP VALUES AND MAY NEED ADJUSTING TO ACCURATELY REFLECT THE COMPUTATIONAL COSTS
match_time_ratio = 1e-90 # s/voxel
cost_time_ratio = 1e-50 # s/voxel
dist_time_ratio = 1e-70 # s/voxel
Expand Down Expand Up @@ -78,6 +79,7 @@ def time_submission(
# %timeit time_submission(4, 4, 4, 1e6)

# %%
# TUNE THREADS
main_threads = [1, 2, 4, 8]
label_threads = [1, 2, 4, 8]
instance_threads = [1, 2, 4, 8]
Expand Down

0 comments on commit 569a5a2

Please sign in to comment.