技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
dataset-and-assets【数据与研究】Prepare, validate, and troubleshoot tf-faster-rcnn dataset folders, registry names, roidb caches, pretrained checkpoints, ImageNet initialization weights, and output/tensorboard artifact paths without downloads or training.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a future Researcher needs to place or validate VOC/COCO data, understand dataset registry names, reason about roidb and data/cache, place pretrained Faster R-CNN checkpoints or ImageNet initialization weights, or locate generated output and TensorBoard artifacts for tf-faster-rcnn.
Do not use this sub-skill for dependency installation, Cython/CUDA build failures, TensorFlow compatibility, or NMS extension import errors; route those to installation-and-configuration. Do not include or construct training/test/demo commands here; route command construction and runtime choices to training-and-evaluation or inference-and-demo.
<repo-root>.data/demo images, pretrained Faster R-CNN checkpoint assets, and/or ImageNet initialization weights.lib/datasets/factory.py registers 23 keys. Use these exact strings for --imdb values and for roidb/cache names:
voc_2007_train, voc_2007_val, voc_2007_trainval, voc_2007_testvoc_2012_train, voc_2012_val, voc_2012_trainval, voc_2012_testvoc_2007_train_diff, voc_2007_val_diff, voc_2007_trainval_diff, voc_2007_test_diffvoc_2012_train_diff, voc_2012_val_diff, voc_2012_trainval_diff, voc_2012_test_diffcoco_2014_train, coco_2014_val, coco_2014_minival, coco_2014_valminusminival, coco_2014_trainvalcoco_2015_test, coco_2015_test-devvoc_2007_trainval+voc_2012_trainval and coco_2014_train+coco_2014_valminusminival are not registry keys accepted directly by get_imdb; they are combined training-set strings split by tools/trainval_net.py. Route command use of those combined strings to training-and-evaluation.
Establish <repo-root> and treat <repo-root>/data as cfg.DATA_DIR.
Pick the registry key(s) or source-supported combined training string needed by the downstream task.
Validate the intended layout with the bundled script:
python <skill-dir>/scripts/validate_layout.py --repo-root <repo-root> --check voc
python <skill-dir>/scripts/validate_layout.py --repo-root <repo-root> --check coco
python <skill-dir>/scripts/validate_layout.py --repo-root <repo-root> --check demo-model
python <skill-dir>/scripts/validate_layout.py --repo-root <repo-root> --check imagenet
Omit --check to run all layout checks. The script reports deterministic JSON and exits nonzero when required expected paths for the selected check are absent.
If data annotations or image-set files changed, remove stale data/cache/<imdb-name>_gt_roidb.pkl files before the next dataset constructor run.
For pretrained checkpoint placement and output/TensorBoard path reasoning, use references/model-artifacts.md.
references/data-layouts.md: VOC/COCO folder contracts, exact registry keys, image-name patterns, roidb dict fields, cache semantics, and safe validation examples.references/model-artifacts.md: pretrained Faster R-CNN checkpoint layout, data/imagenet_weights naming, snapshot sidecars, demo-model symlink layout, and output/TensorBoard path formulas.references/troubleshooting.md: common missing-path, stale-cache, split-file, checkpoint-sidecar, and route-to-other-sub-skill decisions.scripts/validate_layout.py: safe stdlib-only path/name validator; no imports from the legacy repo, no downloads, no dataset parsing, no TensorFlow execution.data/scripts/fetch_faster_rcnn_models.sh automatically. It downloads a large archive and depends on an old external server.installation-and-configuration.training-and-evaluation.