Skip to content

Swap classical region-grow for nnInteractive in segment_from_prompt seam - #158

Merged
harleensachdev merged 1 commit into
mainfrom
feature/nninteractive-swap
Aug 15, 2026
Merged

Swap classical region-grow for nnInteractive in segment_from_prompt seam#158
harleensachdev merged 1 commit into
mainfrom
feature/nninteractive-swap

Conversation

@harleensachdev

Copy link
Copy Markdown
Collaborator
  • New services/nninteractive_predictor.py: client wrapper against the standalone nninteractive-server (session caching, point + 2D-box prompts)
  • advanced_analysis.py: segment_from_prompt tries nnInteractive first, falls back to region_grow if it returns an empty mask
  • api_blueprint.py: pass case_key through so the predictor can skip re-uploading the volume across requests for the same case/resolution

Verified standalone against PanTS_00000001 on bdmap1: point prompt 142284 voxels, 2D-slice box prompt 16227 voxels. Box format required by this checkpoint is per-axis [start,end] pairs with exactly one axis of size 1 (2D bbox only, 3D unsupported), not two corner points.

- New services/nninteractive_predictor.py: client wrapper against the
  standalone nninteractive-server (session caching, point + 2D-box prompts)
- advanced_analysis.py: segment_from_prompt tries nnInteractive first,
  falls back to region_grow if it returns an empty mask
- api_blueprint.py: pass case_key through so the predictor can skip
  re-uploading the volume across requests for the same case/resolution

Verified standalone against PanTS_00000001 on bdmap1: point prompt
142284 voxels, 2D-slice box prompt 16227 voxels. Box format required by
this checkpoint is per-axis [start,end] pairs with exactly one axis of
size 1 (2D bbox only, 3D unsupported) -- not two corner points.
@harleensachdev
harleensachdev merged commit b210bb5 into main Aug 15, 2026
8 checks passed
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