技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-validation【数据与研究】Inspect class membership and ground-truth/detection-result file-set intersections for mAP-style inputs with safe report-first repair guidance.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a future agent must decide whether mAP-style ground-truth and detection-result folders are ready for evaluation, find which files contain a class, or safely repair mismatched .txt file sets before running metrics.
ground-truth/ and detection-results/ contain top-level .txt files with matching filenames.../evaluation/SKILL.md.../conversion/SKILL.md.difficult behavior, or metric semantics beyond the file-set and first-token class checks owned here..txt file and one detection-result .txt file per image, with matching filenames such as image_1.txt on both sides.difficult.Identify the actual GT and DR folders the user wants evaluated. Do not assume implicit repository-relative folders; pass explicit paths to the helper.
Run a non-mutating readiness report:
python sub-skills/data-validation/scripts/check_map_inputs.py \
--gt-dir /path/to/ground-truth \
--dr-dir /path/to/detection-results
If the user asks about a class, add --class-name CLASS and read both GT and DR results. A class absent from both folders usually means the class label is misspelled, conversion mapped it differently, or the wrong folders were selected.
If the report shows GT-only or DR-only files, inspect the listed basenames before moving anything. Same counts can still be invalid when basenames differ.
Repair only when the user accepts moving the non-intersecting .txt files out of evaluator inputs. Use a backup root outside the GT/DR folders and require explicit confirmation:
python sub-skills/data-validation/scripts/check_map_inputs.py \
--gt-dir /path/to/ground-truth \
--dr-dir /path/to/detection-results \
--move-extra-to /path/to/map-input-backup \
--confirm-move
Rerun the report after any repair. Route to evaluation only when the helper reports matching file sets and non-empty intersections.
references/workflows.md for step-by-step class lookup, file-set readiness, dry-run interpretation, and explicit backup repair workflows.references/troubleshooting.md for empty folders, same-count/different-basename failures, non-intersecting sets, missing classes, unsafe legacy moves, wrong filenames, and backup conflicts.scripts/check_map_inputs.py --help when you need exact helper options and exit-code behavior.--move-extra-to without --confirm-move prints a plan but still does not move files..txt files to a named backup root.