data-and-configs
Author and statically validate pytorch-semseg YAML configs, choose dataset loaders, and troubleshoot dataset layouts and split/path errors before training or validation.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- data-and-configs
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Author and statically validate pytorch-semseg YAML configs, choose dataset loaders, and troubleshoot dataset layouts and split/path errors before training or validation.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/configuration.md10.3 KB
- 参考文档references/data-formats.md6.5 KB
- 参考文档references/troubleshooting.md5.8 KB
- 脚本scripts/validate_config.py29.4 KB
03 SKILL.md 正文
data-and-configs
Use this sub-skill when a task is about preparing a pytorch-semseg YAML config, selecting a dataset loader, checking dataset paths/splits, or diagnosing config/data errors before training or validation.
Do not run training, validation, or single-image inference from this sub-skill.
Quick workflow
-
Identify the target dataset key and split names from references/configuration.md.
-
Check that the dataset directory layout matches references/data-formats.md.
-
Draft or update the YAML config with
model,data, andtrainingsections. -
Run the bundled static checker before handing the config to a training or validation workflow:
python scripts/validate_config.py --config CONFIG.yml --print-summary python scripts/validate_config.py --config CONFIG.yml --strict-paths --print-summaryThe checker uses
yaml.safe_load, does not import pytorch-semseg, does not instantiate loaders, and does not read image or mask data.
Scope and routing
- Config schema, dataset registry keys, split names, data layouts,
img_rows/img_cols, augmentations, loss/optimizer/scheduler key checks, and legacy key drift: stay here. - Model constructor internals, architecture-specific parameters, registry smoke tests, or pretrained-weight side effects: route to
model-zoo-and-apis. - Building or running
train.py/validate.pycommands, checkpoint resume behavior during execution, and metric interpretation: route totraining-and-evaluation. test.pysingle-image command construction, image checkpoint naming, output mask writing, and DenseCRF: route tosingle-image-inference.
Runtime files
- references/configuration.md: config schema, registry tables, safe YAML snippets, and legacy drift warnings.
- references/data-formats.md: expected dataset root layouts and split conventions by loader.
- references/troubleshooting.md: common symptoms, causes, and fixes for config/data failures.
- scripts/validate_config.py: static YAML validator with optional path-layout checks.
Safety notes
- Treat source example configs as evidence, not as drop-in templates: replace machine-specific paths, set
resume: nullwhen starting fresh, and validate registry keys. - Keep
img_rowsandimg_colsnumeric unless the selected loader explicitly supports the string pairsame. - Prefer
yaml.safe_loadin any adapted script; the original entry points used legacyyaml.load(fp)style that fails on modern PyYAML unless a loader is supplied.
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).