AGENT SKILL

detection-workflows

Guides SimpleDet config-driven training, bbox and mask evaluation, fine-tuning, inference-speed benchmarking, checkpoints, and GPU-aware workflow troubleshooting.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
detection-workflows
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Guides SimpleDet config-driven training, bbox and mask evaluation, fine-tuning, inference-speed benchmarking, checkpoints, and GPU-aware workflow troubleshooting.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Detection workflows

Use this route for training, bbox evaluation, mask evaluation, inference speed, fine-tuning, FP16, model/config selection, or checkpoint output. Read cli-reference.md, then configuration.md before constructing a command.

Gate the workflow

SimpleDet is symbolic/static-shape MXNet. Its entry scripts import configs by turning config/foo.py into module config.foo, read roidbs from data/cache/, construct mx.gpu contexts from KvstoreParam.gpus, and write under experiments/. Confirm all three before any long run.

Use the bundled wrapper to make the checkout root explicit and avoid unsafe shell composition:

python <skill-root>/scripts/run_workflow.py --repo-root /path/to/simpledet \
  --entrypoint speed --config config/faster_r50v1_fpn_1x.py \
  --shape 800 1333 --gpu 0 --count 100 --dry-run

Remove --dry-run only after the setup diagnostic, config inspection, cache validation, checkpoint check, and required CUDA backend check pass. The wrapper does not make a workflow safe: the selected entry point can allocate GPUs, read large data, load weights, and write experiments.

Workflow routes

  • train: fit or resume a detector; long-running and weight-mutating.
  • test: bbox evaluation from a compatible checkpoint.
  • mask-test: bbox plus instance-mask evaluation; requires polygon data.
  • speed: static-shape one-GPU forward benchmark; requires --shape.

Use workflows.md for staged execution and troubleshooting.md for failures.

Route onward

Use scripts/inspect_config.py for source/config inspection; it reports missing optional runtime packages rather than starting a symbol build. Use the root run_workflow.py wrapper for actual entry-point invocation.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351