You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: slide2vec/configs/default.yaml
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ tiling:
42
42
sthresh_up: 255# upper threshold value for scaling the binary mask
43
43
mthresh: 7# median filter size (positive, odd integer)
44
44
close: 4# additional morphological closing to apply following initial thresholding (positive integer)
45
-
method: "hsv"# tissue segmentation method: "hsv", "otsu", "threshold", or "sam2"
45
+
method: # tissue segmentation method: "hsv", "otsu", "threshold", or "sam2"; ignored when precomputed tissue masks are provided
46
46
sam2_checkpoint_path: # optional when method="sam2"; if empty, hs2p downloads the default AtlasPatch checkpoint from Hugging Face
47
47
sam2_config_path: # optional local override for the SAM2 model config; if empty, hs2p downloads the default AtlasPatch config from Hugging Face
48
48
sam2_device: "cpu"# device for SAM2 inference, e.g. "cpu", "cuda", or "cuda:0"
@@ -71,12 +71,11 @@ tiling:
71
71
72
72
speed:
73
73
precision: # model inference precision ["fp32", "fp16", "bf16"]; if not set, determined automatically based on model recommendations
74
-
num_dataloader_workers: # number of DataLoader worker processes for reading tiles during embedding; defaults to auto (job CPU budget, except cuCIM on-the-fly uses cpu_budget // speed.num_cucim_workers)
74
+
num_dataloader_workers: # number of DataLoader worker processes per GPU rank for reading tiles during embedding; defaults to auto (job CPU budget split across GPUs, except cuCIM on-the-fly uses per-GPU budget // speed.num_cucim_workers)
75
75
num_gpus: # number of GPUs to use for feature extraction; defaults to all available GPUs
76
76
num_preprocessing_workers: # number of workers for hs2p tiling (WSI reading, JPEG encoding, tar writing); defaults to the runtime CPU budget capped at 64
77
77
num_cucim_workers: 4# number of internal cucim threads per read_region call (embedding path, on-the-fly only); DataLoader workers are auto-set to cpu_count // num_cucim_workers
78
78
prefetch_factor_embedding: 4# prefetch factor for tile embedding dataloaders
79
-
persistent_workers_embedding: true # keep DataLoader workers alive across epochs/batches
0 commit comments