Nnunetv2

From lza6/Armor-piercing-system-prompts · View interactive version

Nnunetv2 is an AI agent skill from the GitHub repository lza6/Armor-piercing-system-prompts. Use nnU-Net v2 for medical image segmentation workflows: dataset preparation, planning/preprocessing, training, inference/evaluation, model sharing, and customization.

How to use this skill

Skill file

nnU-Net v2

Use this skill when the user needs practical help with nnU-Net v2, the self-configuring medical image segmentation framework exposed by the nnunetv2 Python package and nnUNetv2_* command-line tools.

Quick Start

  1. Confirm the package and core commands are available:

```bash

python scripts/check_nnunet_setup.py --require-commands

```

  1. Confirm the nnU-Net storage environment variables are set for the requested workflow: nnUNet_raw, nnUNet_preprocessed, and nnUNet_results.
  2. Route to the focused sub-skill before giving detailed commands; nnU-Net workflows are order-dependent.
  3. Prefer CLI commands for user workflows and use Python APIs for programmatic integration, dry-run command generation, or validation helpers.

Route by Task

End-to-End Workflow

For a new dataset, the normal route is:

# 1) Prepare raw dataset in nnU-Net format.
python sub-skills/data-preparation/scripts/validate_dataset_json.py /path/to/nnUNet_raw/Dataset123_MyDataset --check-files

# 2) Plan and preprocess.
nnUNetv2_plan_and_preprocess -d 123 --verify_dataset_integrity

# 3) Train folds; use --npz if model selection/ensembling may be needed.
nnUNetv2_train 123 3d_fullres 0 --npz

# 4) Select/evaluate/predict after training artifacts exist.
nnUNetv2_find_best_configuration 123 -c 2d 3d_fullres
nnUNetv2_predict -i INPUT_FOLDER -o OUTPUT_FOLDER -d 123 -c 3d_fullres

Read references/workflow-overview.md for ordering, prerequisites, and cross-skill handoffs.

Core Commands

Read references/cli-map.md for command ownership and when to inspect -h.

References and Helpers

Operating Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.