技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-preparation【数据与研究】It prepares, validates, loads, normalizes, transforms, inspects, and customizes MMSkeleton skeleton datasets while preserving loader and tensor-axis contracts.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when the input is already skeleton data, or when a pose
extraction result must be checked before recognition. It covers the JSON
annotation contract, category labels, the SkeletonLoader/DataPipeline
boundary, and the transforms exposed as datasets.skeleton.*.
recognition sub-skill. Route raw-video detector
extraction, MMDetection, or HRNet work to the pose-estimation sub-skill;
hand its produced JSON back here for validation. This skill does not claim
detector execution.info, annotations, and
category_id, then check every annotation's frame, effective person slot,
channel count, and finite numeric value. Use --num-track when the target
loader configuration has a known person-slot limit.SkeletonLoader with the JSON directory, num_track, and (only
when it exactly matches the file) num_keypoints. The loader allocates
(C, V, T, M) float32 data and fills sparse (channel, joint, frame, person) locations with zeros. It uses person_id when present and falls
back to id when person_id is null; avoid relying on the loader's silent
dropping of out-of-range records.to_tuple. The common ST-GCN path
changes (C,V,T,M) to (C,T,V,M) and batching adds N, yielding
(N,C,T,V,M).DataPipeline should return a mutable sample dictionary with data and
category_id, and pipeline stages should finish with the tuple expected by
the consumer. A feeder that bypasses DataPipeline must document and return
the consumer's exact tensor/label contract rather than guessing axes.recognition sub-skill.python scripts/validate_skeleton_json.py --help
python scripts/validate_skeleton_json.py --input path/to/sample.json
python scripts/validate_skeleton_json.py --input path/to/dataset --category-annotations path/to/categories.json --num-track 2
The validator is read-only, reports file and annotation locations, accepts a
missing category mapping only when the sample label is -1, and exits nonzero
for malformed or unsafe data. Its exact checks and category matching rules are
in data-formats.md.