Skip to content

docs: expand the custom segmentation function guide - #34

Merged
lguerard merged 1 commit into
mainfrom
docs/custom-fn-detail
Jun 25, 2026
Merged

docs: expand the custom segmentation function guide#34
lguerard merged 1 commit into
mainfrom
docs/custom-fn-detail

Conversation

@lguerard

Copy link
Copy Markdown
Contributor

Makes the Custom segmentation function section actually actionable:

  • Explicit contract table — input is one spatial tile (channel/level pre-selected, halo included, (z,y,x)/(y,x), image dtype); return an integer label image of the same shape; labels only need to be tile-local (merge globalises them); never crop/resize.
  • Model caching — module-level _MODEL / lru_cache so heavy models load once per worker, with a runnable StarDist 3-D example.
  • Test-before-submit snippet — load one tile via load_ome_zarr, call the function, assert shape/dtype.
  • GPU note, and a fuller cluster checklist (segment-env deps, offline weight prefetch, mem_mb/runtime).

Docs only.

🤖 Generated with Claude Code

Spell out the per-tile contract (halo-included spatial tile in, same-shape
int label image out, tile-local labels, no res/crop), add a model-caching
StarDist 3-D example, a standalone "test on one tile" snippet, GPU note,
and a fuller cluster checklist (deps, offline prefetch, mem/walltime).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lguerard
lguerard merged commit df0f5a7 into main Jun 25, 2026
2 checks passed
@lguerard
lguerard deleted the docs/custom-fn-detail branch June 25, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant