@@ -65,6 +65,7 @@ empty_threshold: null # null β Otsu
6565method : " cellpose" # "cellpose" (GPU), "threshold" (no GPU), "custom"
6666label_name : " cellpose" # name under image.zarr/labels/
6767dilate : 0 # optional: pixels to grow labels by, any method
68+ dilate_gpu : false # dilate via cupy instead of scipy (needs a GPU)
6869cellpose :
6970 model : " cyto3"
7071 diameter : 30
@@ -80,8 +81,15 @@ sequential_labels: true # renumber labels to a contiguous 1..N
8081
8182!!! tip "Growing labels after segmentation"
8283 ` dilate: N` grows every label by `N` pixels once segmentation finishes,
83- regardless of `method`. `0` (default) disables it. See [Growing labels
84- afterwards](custom_segmentation.md#growing-labels-afterwards-dilation)
84+ regardless of `method`. `0` (default) disables it. Runs on CPU (scipy)
85+ by default; set `dilate_gpu : true` to dilate via cupy instead β that
86+ needs `cupy` installed in the segment job's environment (matching your
87+ CUDA version, e.g. `pip install cupy-cuda12x`) and a GPU allocated for
88+ that job (`set-resources : segment:` in `profile/slurm/config.yaml`,
89+ same as for a GPU `method`). It's independent of whatever `method`
90+ itself runs on β you can dilate on GPU even with `method : " threshold" `
91+ (CPU), or on CPU even with ` method: "cellpose"` (GPU). See [Growing
92+ labels afterwards](custom_segmentation.md#growing-labels-afterwards-dilation)
8593 for how it works and the equivalent direct-API call.
8694
8795!!! tip "Tile size vs runtime"
0 commit comments