技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
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.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
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, and training sections.
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-summary
The checker uses yaml.safe_load, does not import pytorch-semseg, does not instantiate loaders, and does not read image or mask data.
img_rows/img_cols, augmentations, loss/optimizer/scheduler key checks, and legacy key drift: stay here.model-zoo-and-apis.train.py/validate.py commands, checkpoint resume behavior during execution, and metric interpretation: route to training-and-evaluation.test.py single-image command construction, image checkpoint naming, output mask writing, and DenseCRF: route to single-image-inference.resume: null when starting fresh, and validate registry keys.img_rows and img_cols numeric unless the selected loader explicitly supports the string pair same.yaml.safe_load in any adapted script; the original entry points used legacy yaml.load(fp) style that fails on modern PyYAML unless a loader is supplied.