Skip to content
Back to skills

Data And Configs

ASecurity

"Author and statically validate pytorch-semseg YAML configs, choose

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
toolspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill data-and-configs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data And Configs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data And Configs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-data-and-configs-f9b40e38/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-data-and-configs-f9b40e38)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: data-and-configs
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
metadata:
  disco-role: operating
license: MIT
---

# 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

1. Identify the target dataset key and split names from [references/configuration.md](references/configuration.md).
2. Check that the dataset directory layout matches [references/data-formats.md](references/data-formats.md).
3. Draft or update the YAML config with `model`, `data`, and `training` sections.
4. Run the bundled static checker before handing the config to a training or validation workflow:

   ```bash
   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.

## 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.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`.

## Runtime files

- [references/configuration.md](references/configuration.md): config schema, registry tables, safe YAML snippets, and legacy drift warnings.
- [references/data-formats.md](references/data-formats.md): expected dataset root layouts and split conventions by loader.
- [references/troubleshooting.md](references/troubleshooting.md): common symptoms, causes, and fixes for config/data failures.
- [scripts/validate_config.py](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: null` when starting fresh, and validate registry keys.
- Keep `img_rows` and `img_cols` numeric unless the selected loader explicitly supports the string pair `same`.
- Prefer `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.

Files in this skill

  • SKILL.md2.9 KB
  • references/configuration.md10.3 KB
  • references/data-formats.md6.5 KB
  • references/troubleshooting.md5.8 KB
  • scripts/validate_config.py29.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.