map
Evaluate detector outputs with VOC-style AP/mAP, convert annotations into evaluator text, and inspect or repair GT/DR file sets.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- map
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Evaluate detector outputs with VOC-style AP/mAP, convert annotations into evaluator text, and inspect or repair GT/DR file sets.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/repo-overview.md1.7 KB
- 参考文档references/repo-provenance.md1.3 KB
- 参考文档references/repo-routing-metadata.json310 B
- 参考文档references/troubleshooting.md1.9 KB
03 SKILL.md 正文
mAP
Use this repo skill for the Cartucho/mAP evaluation workflow: evaluate detector outputs, convert source annotations into the evaluator format, or check whether ground-truth and detection-result folders are ready to run.
Start here
- If you already have evaluator-ready
.txtfiles forground-truth/anddetection-results/, go tosub-skills/evaluation/SKILL.md. - If you need to convert VOC XML, YOLO, darkflow JSON, darknet
result.txt, or keras-yolo3 annotations, go tosub-skills/conversion/SKILL.md. - If you need to find classes or check/repair matching filenames before evaluation, go to
sub-skills/data-validation/SKILL.md.
Minimum runtime
- Python 3.11 or newer.
numpyfor evaluation.- Optional:
matplotlibfor plots andopencv-pythonfor animation.
Route map
Evaluation
Read sub-skills/evaluation/SKILL.md when the user asks for AP, mAP, precision/recall, IoU thresholds, ignored classes, output interpretation, or optional plots/animation.
Bundled helper:
sub-skills/evaluation/scripts/run_map_evaluation.py
Conversion
Read sub-skills/conversion/SKILL.md when the user needs source annotations or detector outputs transformed into evaluator .txt files.
Bundled helper:
sub-skills/conversion/scripts/convert_annotations.py
Data validation
Read sub-skills/data-validation/SKILL.md when the user needs to find a class, compare GT/DR basenames, or safely repair file-set mismatches before evaluation.
Bundled helper:
sub-skills/data-validation/scripts/check_map_inputs.py
Recommended order
- Validate the file sets with
data-validation. - Convert any non-evaluator formats with
conversion. - Run AP/mAP with
evaluation.
That order keeps the workflow explicit and avoids chasing metric errors that are actually data-layout problems.
What not to do here
- Do not open the original repository checkout as a runtime dependency.
- Do not run the legacy mutating scripts from the source repository; use the bundled helpers in this generated skill tree instead.
- Do not use this root router for metric math details, conversion row schemas, or repair steps. Those belong in the sub-skills and their references.
References
references/repo-overview.md— quick map of the repo workflows and file-layout assumptions.references/troubleshooting.md— cross-cutting symptoms that decide whether to route to evaluation, conversion, or data-validation.references/repo-provenance.md— source commit, branch, dirty-state summary, and evidence paths.references/repo-routing-metadata.json— structured metadata for the managed repo-skills router.
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).