advanced-training
Plan TotalSegmentator nnU-Net retraining, evaluation, dataset conversion, and model contribution workflows safely.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- advanced-training
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Plan TotalSegmentator nnU-Net retraining, evaluation, dataset conversion, and model contribution workflows safely.
- disable-model-invocation
- true
02 资源文件 2
- 参考文档references/training-and-evaluation.md10.3 KB
- 参考文档references/troubleshooting.md5.5 KB
03 SKILL.md 正文
Advanced Training
Use this sub-skill only when a user explicitly asks about retraining, evaluating, contributing, or maintaining TotalSegmentator-style nnU-Net models. Ordinary users who just need masks should use ../segmentation-workflows/SKILL.md instead.
Start Here
- Confirm the request is research/maintenance work, not routine segmentation. Training and benchmark evaluation assume curated labels, nnU-Net v2, substantial storage, GPU memory, and multi-day runtime.
- For retraining on the public CT TotalSegmentator dataset, follow
references/training-and-evaluation.md: convert the dataset into nnU-Net layout, preprocess, train, predict the held-out split, then evaluate. - For a new anatomy or contributed model, first define the target modality, label set, dataset license, annotation quality, validation split, and whether the model is intended for upstream inclusion.
- Treat release publishing, weight anonymization, server deployment, and package ownership steps as maintainer-only boundaries; do not run them unless the user is an authorized maintainer and explicitly asks.
- Read
references/troubleshooting.mdbefore launching expensive work so missing nnU-Net paths, class-map mismatches, benchmark-data assumptions, and GPU/runtime issues are caught early.
Local References
references/training-and-evaluation.mdcovers dataset conversion contracts, nnU-Net command patterns, evaluation metrics, expected-result interpretation, model contribution boundaries, and package-management boundaries.references/troubleshooting.mdmaps common training/evaluation failures to checks, recovery steps, and sibling-skill routes.
Route Elsewhere
- Use
../segmentation-workflows/SKILL.mdforTotalSegmentator -i ... -o ...,python_api.totalsegmentator(...), speed modes, ROI subsets, and reports. - Use
../capability-discovery/SKILL.mdfor supported runtime tasks/classes andtotalseg_infodiscovery. - Use
../runtime-configuration/SKILL.mdfor installation, model weights, devices, licenses, offline caches, and telemetry configuration. - Use
../outputs-and-statistics/SKILL.mdfor run reports, segmentation statistics, multilabel outputs, probabilities, and mask combination.
Safety Rules
- Do not present training as a default way to use TotalSegmentator; inference with released weights is the normal path.
- Do not copy or launch heavyweight training/evaluation scripts blindly; adapt the reference contracts to the user’s dataset and compute budget.
- Do not promise exact reproduction of released TotalSegmentator v2 results from the public dataset: the released v2 models used additional non-public data, and public images have blurred faces.
- Do not publish packages, tags, or model weights, and do not anonymize or upload weights, unless the user explicitly owns that release process.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).