training-and-evaluation
Train, test, re-evaluate, and convert tf-faster-rcnn experiments safely with schedule-aware command construction, config overrides, snapshot handling, output paths, and evaluation caveats.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- training-and-evaluation
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Train, test, re-evaluate, and convert tf-faster-rcnn experiments safely with schedule-aware command construction, config overrides, snapshot handling, output paths, and evaluation caveats.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/cli-reference.md10.2 KB
- 参考文档references/training-evaluation.md12.1 KB
- 参考文档references/troubleshooting.md9.4 KB
- 脚本scripts/tf_faster_rcnn_command_builder.py17.7 KB
03 SKILL.md 正文
Training and Evaluation
Use this sub-skill when a Researcher needs to plan, dry-run, diagnose, or deliberately launch tf-faster-rcnn training, validation, testing, re-evaluation, or deprecated VGG16 snapshot conversion.
Route here for
- Expanding
train_faster_rcnn.sh,test_faster_rcnn.sh, andconvert_vgg16.shbehavior into explicittools/trainval_net.py,tools/test_net.py,tools/reval.py, ortools/convert_from_depre.pycommands. - Choosing the repository's dataset schedule mapping for
pascal_voc,pascal_voc_0712, orcoco, including train/test imdb names, iteration counts, learning-rate step, anchors, and ratios. - Choosing a supported network selector:
vgg16,res50,res101,res152, ormobile, while checking whether a matching config file exists in the user's checkout. - Applying safe config overrides through the repository's
--set KEY VALUE ...grammar and predicting the output tag that shell launchers would derive from extra arguments. - Reasoning about snapshots, resume behavior, TensorBoard directories, test output directories, re-evaluation from
detections.pkl, and deprecated VGG16 conversion. - Diagnosing missing initialization weights, missing trained checkpoints, NaNs, stale snapshots, NMS/AP mismatches, and expensive-run blockers.
Route elsewhere
- Installation, TensorFlow/CUDA compatibility, Cython extension builds,
USE_GPU_NMS, and environment checks belong in installation-and-configuration. - VOC/COCO directory layouts, dataset registry details, ImageNet initialization checkpoint placement, and pretrained model artifact layouts belong in dataset-and-assets.
- Demo-only image inference and visualization on custom images belongs in inference-and-demo.
- Low-level network, RPN, RoI, bbox, and model-extension APIs belong in api-and-architecture.
- Cross-cutting repo issues should also consult the root troubleshooting reference when it exists: root troubleshooting.
First safety rule
Do not start a real train/test/evaluation run while only trying to answer a planning question. Full training and benchmark evaluation are expensive and require external datasets, checkpoints, a compatible TensorFlow 1.x runtime, and usually compiled CUDA/NMS extensions. Use the bundled dry-run builder first:
python sub-skills/training-and-evaluation/scripts/tf_faster_rcnn_command_builder.py train --dataset pascal_voc_0712 --net res101 --gpu-id 0
The builder prints commands only; it never trains or evaluates by itself.
Read in this order
- training-evaluation.md for workflow semantics, schedule mappings, output directories, snapshots/resume, TensorBoard, benchmark caveats, and failure recovery.
- cli-reference.md for command-line options, override grammar, and command-builder examples.
- troubleshooting.md for targeted diagnosis of missing data/weights, NaNs, stale snapshots, NMS/AP surprises, and expensive-run blocks.
Evidence-backed limits
- Full CUDA build, demo, train, test, and benchmark AP reproduction were not verified during skill production. CPU/source inspection verified command facts, config behavior, dataset registry facts, anchor/NMS utility behavior, and TensorFlow 1.15 CPU import as an inspection substitute for the TensorFlow r1.2-era repository.
- The repository is deprecated; benchmark numbers are historically reported, stochastic, and dependent on old TensorFlow/CUDA/native-extension behavior.
res152is accepted bytools/trainval_net.pyandtools/test_net.pyand appears in README performance notes, but the checked-outexperiments/cfgs/evidence did not includeres152.yml; require a user-supplied config or cloned evidence before claiming a ready command.
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).