outputs-and-statistics
Consume TotalSegmentator masks, run reports, statistics, radiomics, probabilities, multilabel files, and combined-mask outputs.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- outputs-and-statistics
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Consume TotalSegmentator masks, run reports, statistics, radiomics, probabilities, multilabel files, and combined-mask outputs.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/output-formats.md5.4 KB
- 参考文档references/reports-and-statistics.md5.8 KB
- 参考文档references/troubleshooting.md6.9 KB
- 脚本scripts/combine_masks_command.py3.5 KB
- 脚本scripts/inspect_multilabel_header.py4.4 KB
- 脚本scripts/inspect_run_report.py7.1 KB
03 SKILL.md 正文
TotalSegmentator Outputs and Statistics
Use this sub-skill when a segmentation has already been run and the next task is to validate, summarize, post-process, or combine its outputs. For running a segmentation, route to segmentation-workflows; for task and class discovery, route to capability-discovery; for DICOM output mechanics, route to dicom-and-formats.
What This Covers
- Validate
--reportJSON manifests without scraping stdout. - Read
statistics.json,statistics_radiomics.json, and--statistics_extrametrics. - Understand per-class masks,
--mlmultilabel outputs, label maps, and--save_probabilitiesside outputs. - Build safe
totalseg_combine_maskscommands for lung, ribs, vertebrae, heart, pelvis, and body masks. - Diagnose common output/report/statistics failures after a run completes.
Quick Paths
- Run report schema and validation: references/reports-and-statistics.md
- Output format behavior and post-processing commands: references/output-formats.md
- Troubleshooting matrix: references/troubleshooting.md
- Summarize or enforce a report:
python scripts/inspect_run_report.py --report seg/run_report.json --require-task total --require-class liver - Inspect a multilabel label map:
python scripts/inspect_multilabel_header.py seg.nii.gz --require-label spleen - Build a combine command:
python scripts/combine_masks_command.py --input seg/ --output lung.nii.gz --mode lung
Operating Rules
- Treat
run_report.jsonandstatistics.jsonas the automation contract; do not parse human progress text. - Use
report.classesto interpret class names, especially after--roi_subsetfilters the run. - Expect
report.output_filesto be populated only whenoutputis a directory of NIfTI files; it can be empty for single-file multilabel or DICOM-style outputs. - Do not rerun segmentation to combine masks; use existing per-class masks or a multilabel NIfTI with
totalseg_combine_masks. - If a class or task name is unknown, route to capability-discovery and query
totalseg_infoinstead of hard-coding names.
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).