MIC-DKFZ/nnInteractive

nnInteractive is a framework for 3D interactive segmentation, supporting intuitive prompts like points, scribbles, bounding boxes, and lasso. Trained on 120+ diverse 3D datasets, it sets a new standard in accuracy, usability, and adaptability for clinical and research applications.

What it solves

nnInteractive addresses the challenge of segmenting structures in 3D medical images (like CT, MRI, PET, microscopy) in an interactive, user-friendly way. Traditional foundation models such as SAM are 2D and struggle with domain shifts, while existing 3D adaptations often lack volumetric awareness, limit interactivity, or only handle a small set of structures. nnInteractive lets users get precise 3D masks by drawing simple 2D prompts—clicks, scribbles, boxes, or lasso—and generates a full 3D volume, making interactive segmentation practical for clinical and research workflows.

How it works

The framework is a neural network trained on more than 120 diverse volumetric datasets. Users provide one or more prompts directly on a 2D slice (e.g., a point, a scribble, a box, or a lasso contour). Each interaction refines the segmentation, and the model writes the updated mask into a user-supplied buffer in place. The method supports chaining arbitrary prompt types in any order. The Python backend offers a lightweight remote client that can drive a GPU server over HTTP, so machines without a GPU can still use the model via a thin client. For local use, the full package requires PyTorch and an NVIDIA GPU. The model weights are downloaded on first use from Hugging Face and then cached locally.

Who it’s for

This is aimed at researchers, developers, and power users who work with Python code and need interactive segmentation of volumetric images. It also appeals to clinicians and researchers who prefer graphical tools, thanks to native integrations with napari, MITK, and community plugins for 3D Slicer, ITK-SNAP, and OHIF.

Highlights

  • First-place winner of the CVPR 2025 Challenge on Interactive 3D Segmentation.
  • Supports diverse prompts: points (positive/negative), scribbles, bounding boxes, and a novel lasso tool.
  • Trained on 120+ datasets spanning CT, MRI, PET, 3D microscopy, and more, covering a wide range of structures.
  • Integrates directly into popular imaging platforms: napari, MITK, 3D Slicer, ITK-SNAP, and OHIF.
  • Ships as two pip packages: a torch-free remote client and a full stack with local inference—allowing remote GPU use without any local deep-learning dependencies.
  • AutoZoom feature improves patching for better accuracy on small objects.

Related

  • Project
  • Project
  • Project
  • Project
  • Project