计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
metrics【效率与协作】Use supervision metrics for detection evaluation, benchmarking, and result interpretation.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task asks to evaluate object detection, instance
segmentation, or oriented-box predictions with supervision metrics in version
0.31.0.dev0 on Python >=3.10.
MeanAveragePrecision, MeanAverageRecall, Precision, Recall,
F1Score, result objects, .update(...), .compute(), .reset(),
.to_pandas(), or .plot().MetricTarget.BOXES, MetricTarget.MASKS,
MetricTarget.ORIENTED_BOUNDING_BOXES, and AveragingMethod choices.sv.ConfusionMatrix, confusion-matrix plots, confidence/IoU thresholds, and
per-image validation grids from ConfusionMatrix.benchmark(...).Detections.area, iscrowd, and ignore behavior.DetectionDataset
samples or Detections target lists.Detections.Detections fields, result attributes, targets, averaging, and
COCO-style metadata.confidence or class_id, wrong MetricTarget, mask/OBB metadata,
class mappings, empty inputs, and visualization issues.pip install "supervision[metrics]".
The base install is pip install supervision, but .to_pandas() needs pandas
from the metrics extra.from supervision.metrics import MeanAveragePrecision, MeanAverageRecall, Precision, Recall, F1Score, MetricTarget, AveragingMethod. Do not use the
legacy top-level sv.MeanAveragePrecision for new mAP code.xyxy, class_id, and confidence.
Targets must include xyxy and class_id; target confidence is not
required.BOXES uses detections.xyxy,
MASKS uses detections.mask, and ORIENTED_BOUNDING_BOXES uses
detections.data[ORIENTED_BOX_COORDINATES].ConfusionMatrix requires ids in [0, len(classes) - 1]; new metric result
rows are keyed by matched_classes rather than by row position alone.