executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
file-evaluationFolder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the user wants PASCAL VOC Average Precision (AP) or mean AP (mAP) from folders of ground-truth and detection .txt files, including YOLO-style relative detections, mixed xywh/xyrb coordinate formats, or a noninteractive replacement for the legacy pascalvoc.py workflow.
groundtruths/ and detections/ text folders.0.3, 0.5, or 0.75.center_x center_y width height boxes to VOC AP/mAP with a fixed image size.BoundingBox, BoundingBoxes, or Evaluator objects, custom in-memory metrics, 11-point AP choices, or drawing/plotting API behavior: use ../python-api/SKILL.md..txt file per image id..txt file per image id.xywh: absolute left top width height; for relative coordinates this means YOLO-style center_x center_y width height.xyrb: absolute left top right bottom / XYX2Y2.abs or rel.WIDTH,HEIGHT image size if either folder uses rel coordinates.0.5.See references/file-format.md for exact schemas, matching rules, and relative-coordinate conversion.
The bundled helper is self-contained and uses only the Python standard library:
python scripts/voc_metrics_eval.py \
--gt-folder /path/to/groundtruths \
--det-folder /path/to/detections \
--threshold 0.5 \
--gt-format xywh --det-format xywh \
--gt-coords abs --det-coords abs \
--output-text voc-results.txt \
--output-json voc-results.json \
--pretty
For YOLO-like relative detections against absolute ground truth:
python scripts/voc_metrics_eval.py \
--gt-folder /path/to/groundtruths \
--det-folder /path/to/detections_rel \
--threshold 0.3 \
--gt-format xywh --det-format xywh \
--gt-coords abs --det-coords rel \
--img-size 200,200 \
--output-text voc-results.txt
The helper never plots, never prompts, and never deletes an output directory. It prints to stdout when no output file is requested and creates only the explicit --output-text and/or --output-json files.
Text output contains:
mAP percentage.JSON output contains:
metric, threshold, classes, valid_classes, ignored_classes, mAP, mAP_percent, and warnings.classes includes class, AP, AP_percent, precision, recall, interpolated_precision, interpolated_recall, total positives, total TP, and total FP.+1 in width and height).--gt-format and --det-format; wrong xywh vs xyrb selection can silently change IoU/AP.rel, add --img-size WIDTH,HEIGHT and keep format xywh.--output-json for machine-readable reports or --output-text for a VOC-like summary.references/workflows.md; troubleshoot failures using references/troubleshooting.md.This sub-skill is distilled from the repository's README.md PASCAL VOC metrics and CLI guidance, pascalvoc.py parser/evaluation behavior, the tiny text fixtures in groundtruths/, detections/, groundtruths_rel/, detections_rel/, samples/sample_2/README.md, and the sample output shape in results/results.txt.