mmskeleton
Guides MMSkeleton skeleton-based action-recognition, skeleton-data preparation, config-driven applications, and optional detector-backed pose workflows with explicit legacy compatibility and verification gates.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- mmskeleton
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guides MMSkeleton skeleton-based action-recognition, skeleton-data preparation, config-driven applications, and optional detector-backed pose workflows with explicit legacy compatibility and verification gates.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/compatibility.md2.4 KB
- 参考文档references/repo-provenance.md2.0 KB
- 参考文档references/repo-routing-metadata.json406 B
- 参考文档references/troubleshooting.md2.9 KB
03 SKILL.md 正文
MMSkeleton
Use this repository skill when a task names MMSkeleton, mmskl, ST-GCN,
skeleton-based action recognition, OpenPose/NTU skeleton layouts, MMSkeleton
JSON annotations, or the repository's cascade-RCNN/HRNet pose pipeline.
This is a router, not a copy of the original source tree. Start with the smallest route below, then read only the linked references needed for the task.
Verified scope and hard boundaries
- Verified core: ST-GCN graph/model construction, recognition configuration guidance, skeleton JSON/data transforms, checkpoint alias interpretation, config-driven application structure, and the repository's compiled NMS extension. A tiny CUDA ST-GCN forward passed in a CUDA-capable inspection environment.
- Optional and unverified: MMDetection-backed
pose_demo,pose_demo_HD, image pose inference, and video-to-skeleton dataset building. These require a detector-compatiblemmcv._extbuild, detector/HRNet checkpoints, video dependencies, and GPU resources. Do not infer their readiness from the core ST-GCN smoke. - Not bundled: original checkout files, datasets, downloaded checkpoints, video assets, or large training outputs. Use local paths supplied by the caller and validate them before running an expensive workflow.
Route by user intent
- ST-GCN recognition, graph/model API, pretrained evaluation, training
config, checkpoint aliases, or
mmsklflags: read recognition. - Skeleton JSON, category labels, loader, normalization, masks, temporal transforms, custom feeder, or data validation: read data-preparation first, then route model/layout choices to recognition.
- Pose demo, image/video pose inference, or raw video to skeleton JSON: read pose-estimation and run its readiness checker before downloading anything. Return produced JSON to data-preparation before recognition.
- A new config-driven application: read the
recognition CLI and configuration reference
and the relevant workflow skill. MMSkeleton dispatches through a config's
processor_cfg; flags are declared byargparse_cfgand bound into that config.
Installation and environment gate
The repository is a legacy Python package. Its historical documentation used Python 3.7 with PyTorch 1.2 and CUDA 9.2/10.0; those exact artifacts may be unavailable. Use an isolated, compatible Python 3.7 environment and verify the selected PyTorch CUDA build, compiler/toolkit, MMCV generation, and native extensions before trusting a workflow. Do not mutate a user's environment.
A public baseline install is explicit and isolated; adapt the CUDA/torch versions to the supported wheel/channel available on the target host:
conda create --yes --prefix /path/to/mmskeleton-legacy python=3.7 pip
conda install --yes --prefix /path/to/mmskeleton-legacy -c pytorch pytorch=1.13.1 torchvision=0.14.1 pytorch-cuda=11.7
conda run --prefix /path/to/mmskeleton-legacy python -m pip install mmcv==1.7.2 lazy-import
# Run the editable install from the root of an MMSkeleton checkout.
cd /path/to/MMSkeleton
conda run --prefix /path/to/mmskeleton-legacy env FORCE_CUDA=1 python -m pip install -e . --no-deps
The source documentation names an older PyTorch 1.2/CUDA 9.2 or 10.0
combination; use the exact historical pair only when it is still available and
compatible with the host. Align nvcc and GCC/G++ before building extensions.
For a bounded package check, run the recognition smoke helper after installing
the package and dependencies:
python sub-skills/recognition/scripts/run_stgcn_smoke.py --device auto
Use --device cuda for the required GPU gate. Read
compatibility and troubleshooting when the
historical dependency set cannot be installed. For pose-specific readiness,
run the no-download checker linked from the pose sub-skill.
Shared references
- Read repository provenance before deciding whether this graph is stale for a different MMSkeleton commit.
- Read model and compatibility notes for the verified baseline, historical-version caveat, checkpoint/download boundary, and optional detector limitation.
- Read cross-cutting troubleshooting for import, CUDA/compiler, MMCV, checkpoint, config, and safety failures.
- Read router metadata only when integrating this skill into a managed repo-skills router; it is structured metadata, not a user workflow.
Safety and verification discipline
Prefer a tiny synthetic model/data smoke and JSON validation before launching full training, pretrained evaluation, checkpoint downloads, or video workers. A full recognition result requires the correct processed dataset, class count, graph layout, checkpoint, and CUDA runtime; a parser/help check is not an accuracy result. A raw-video request requires the separate optional detector gate. Preserve unresolved backend limitations in the task report instead of silently substituting CPU behavior.
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).