data-training
Validate datasets, understand augmentation, and plan SSD.PyTorch training commands.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- data-training
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Validate datasets, understand augmentation, and plan SSD.PyTorch training commands.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/datasets-and-augmentation.md7.3 KB
- 参考文档references/training-workflow.md5.2 KB
- 参考文档references/troubleshooting.md4.7 KB
03 SKILL.md 正文
data-training
Use this operating sub-skill when a Researcher needs to prepare or sanity-check SSD.PyTorch training inputs before launching a long training run. It covers VOC/COCO dataset layout, annotation transforms, SSD data augmentation, collation, training command planning, checkpoints, base VGG weights, Visdom, and CPU/CUDA handling.
Fast routing
- For dataset directory checks, first read references/datasets-and-augmentation.md, then run the bundled validator:
python scripts/validate_dataset_layout.py --dataset voc --root VOCDEVKIT_ROOT --require-trainpython scripts/validate_dataset_layout.py --dataset coco --root COCO_ROOT --require-train
- For training command construction, read references/training-workflow.md, then generate templates with:
python scripts/plan_training_command.py --dataset VOC --dataset-root VOCDEVKIT_ROOT --cuda truepython scripts/plan_training_command.py --dataset COCO --dataset-root COCO_ROOT --cuda true
- For startup failures, missing files, import errors, empty targets, or CUDA surprises, read references/troubleshooting.md.
Operating boundaries
This sub-skill owns:
- VOC and COCO training dataset skeletons and split-file expectations.
- VOC/COCO annotation transform outputs and class-count implications.
BaseTransform,SSDAugmentation, anddetection_collatebehavior.train.pyoption planning, required files, checkpoints, learning-rate schedule, optional Visdom, and CUDA/CPU flags.- Safe preflight commands and JSON-producing helper scripts.
Route out of this sub-skill when the request is not about data or training setup:
- Model construction, SSD priors, detection heads, loss internals, and inference model behavior:
../model-inference/SKILL.md. - Evaluation, test-time detection, demo notebook/webcam usage, and mAP reporting:
../evaluation-demos/SKILL.md.
Non-negotiable safety
- Do not execute dataset download scripts or bundle network download logic. The original dataset scripts are reference-only because they perform large downloads, extraction, copies, and deletes.
- Treat full training as external, data-heavy, and long-running. Only plan commands unless the user explicitly asks to run training in an appropriate Researcher session.
- Keep commands explicit about
--dataset_root,--save_folder,--basenet,--resume,--cuda,--batch_size, and--num_workersrather than relying on hidden local defaults. - Remember the COCO label-map import caveat: importing the package-level
datamodule can fail before argument parsing if the default COCO label map is absent at the home-derived default COCO location.
Minimal workflow
- Identify target dataset: VOC or COCO.
- Validate the layout with
scripts/validate_dataset_layout.py; fix missing split files, annotation files, images, COCO JSON files, or label-map placement before training. - Confirm required training files:
- Fresh training needs
vgg16_reducedfc.pthunder the configured save folder. - Resume training needs a checkpoint compatible with the selected dataset/model configuration.
- Fresh training needs
- Generate a command plan with
scripts/plan_training_command.pyand review the emitted notes. - If the user asks to execute training, warn about runtime/data cost, CUDA preference, and dependency/version constraints before running anything.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.