技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
inference-evaluation【数据与研究】Run nnU-Net v2 prediction from dataset/results or explicit model folders, cascades, TTA/tiling/device/process controls, ensembling, postprocessing, evaluation, best-configuration selection, model sharing, and inference troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill after a trained, installed, exported, downloaded, or otherwise available nnU-Net v2 model exists and the task is to generate predictions, compare configurations, ensemble outputs, evaluate segmentations, apply postprocessing, or move models between environments.
nnUNetv2_predict from nnUNet_results with dataset id/name, trainer, plans, configuration, folds, checkpoint, device, TTA, tiling, process, and split-batch flags.nnUNetv2_predict_from_modelfolder when the model folder is explicit or nnUNet_results is unavailable.-prev_stage_predictions.nnUNetv2_ensemble and applying postprocessing.pkl.nnUNetv2_evaluate_folder or nnUNetv2_evaluate_simple, including ignore labels and partial-prediction --chill behavior.nnUNetv2_find_best_configuration after validation probabilities exist.data-preparation.planning-preprocessing.--npz recovery, checkpoint creation, or trainer selection for training: use training-configuration.customization-extension; this sub-skill only explains how inference locates custom trainer classes.dataset.json, plans.json, and requested fold_* checkpoints, or an explicit model folder with the same files.python sub-skills/inference-evaluation/scripts/check_inference_inputs.py INPUT_FOLDER MODEL_OR_DATASET_JSON
nnUNetv2_predict when the model is in nnUNet_results:
nnUNetv2_predict -i INPUT_FOLDER -o OUTPUT_FOLDER -d DATASET001_Example -c 3d_fullres -f 0 1 2 3 4
nnUNetv2_predict_from_modelfolder when the model folder is explicit:
nnUNetv2_predict_from_modelfolder -i INPUT_FOLDER -o OUTPUT_FOLDER -m MODEL_FOLDER -f 0 1 2 3 4
--save_probabilities when predictions will be ensembled; run nnUNetv2_ensemble, then apply postprocessing if a postprocessing.pkl was selected.nnUNetv2_evaluate_folder when dataset.json and plans.json are available, or nnUNetv2_evaluate_simple for label-list evaluation.references/cli-reference.md: exact command routes, flags, defaults, and entry-point distinctions.references/inference-and-evaluation.md: workflows for prediction, cascades, ensembling, postprocessing, evaluation, best-configuration selection, and Python API use.references/model-sharing.md: export/import/download commands and custom-trainer portability rules.references/troubleshooting.md: failure-mode triage for input names, checkpoints, model folders, probabilities, postprocessing metadata, split jobs, devices, and custom trainers.check_inference_inputs.py validates input-folder case/channel naming against dataset.json without loading images or importing nnU-Net. It accepts either a dataset.json path or a model/results folder containing dataset.json.