Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
customization-extension【部署与运维】Extend nnU-Net v2 with custom trainers, planners, preprocessors, normalization, image IO, label/region handling, external trainer deployment, and safe class discovery.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to change nnU-Net behavior by adding or selecting custom Python classes rather than only running standard workflows.
nnUNetTrainer subclasses for loss, sampling, augmentation, optimizer, scheduler, checkpoint, or network changes.nnUNet_extTrainer, editable source placement, or a fork.ExperimentPlanner, DefaultPreprocessor subclasses, resampling behavior, normalization classes, or image reader/writers.trainer/planner/preprocessor/reader class not found, external trainer import errors, or old custom trainer API signatures.dataset.json basics, file naming, and routine region/ignore-label authoring: use data-preparation.planning-preprocessing.training-configuration.inference-evaluation.data_identifier and rerun planning/preprocessing for affected configurations.python sub-skills/customization-extension/scripts/list_available_nnunet_classes.py --kind trainer
nnUNet_extTrainer for trainer lookup or install/place source code so normal Python imports work.references/extension-points.md: extension hook map, class names, plan fields, dataset metadata interactions, and discovery rules.references/custom-trainers-and-sharing.md: trainer subclass patterns and model-sharing choices for custom trainers.references/troubleshooting.md: lookup, import, API-signature, sharing, image IO, normalization, region, and ignore-label failures.list_available_nnunet_classes.py imports nnU-Net and prints discovered class names without modifying files, checkpoints, plans, or environment variables. It can inspect built-in locations and optional external trainer roots:
python sub-skills/customization-extension/scripts/list_available_nnunet_classes.py --kind all
python sub-skills/customization-extension/scripts/list_available_nnunet_classes.py --kind trainer --external-trainer-dir /path/to/trainers