torch-video-workflows
Routes GluonCV PyTorch action-recognition, video model-zoo, DirectPose, COOT, YACS config, DDP, and smoke-check workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- torch-video-workflows
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes GluonCV PyTorch action-recognition, video model-zoo, DirectPose, COOT, YACS config, DDP, and smoke-check workflows.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/torch-models-and-configs.md7.8 KB
- 参考文档references/troubleshooting.md5.4 KB
- 脚本scripts/torch_video_model_smoke.py7.6 KB
03 SKILL.md 正文
torch-video-workflows
Use this sub-skill when the user is working with GluonCV's PyTorch side: action recognition, video models, Torch model zoo names, YACS config files, DDP launch helpers, DirectPose, COOT/video-language, or Torch-specific import/runtime failures.
Use this route for
- Instantiating PyTorch video/action models through
gluoncv.torch.model_zoo.get_model(cfg). - Listing Torch model names with
gluoncv.torch.model_zoo.get_model_list(). - Creating or editing YACS configs with
get_cfg_defaults(name='action_recognition'),coot, ordirectpose. - CPU sanity checks for SlowFast, I3D, R(2+1)D, TPN, CSN/IRCSN, and ResNet video models.
- Optional CUDA/DDP planning for
train_ddp_pytorch.py,test_ddp_pytorch.py, DirectPose DDP, feature extraction, FLOPS, and FPS scripts. - Diagnosing missing or incompatible
torch,torchvision,Pillow, ordecorddependencies.
Do not use this route for
- MXNet model-zoo APIs such as
gluoncv.model_zoo.get_model(name, **kwargs). Use../mxnet-model-zoo/. - Dataset directory layouts, annotation files, frame lists, and transforms. Use
../data-transforms-datasets/. - Full command construction for the broad script zoo. Use
../training-evaluation-scripts/.
Read first
references/torch-models-and-configs.mdfor verified Torch model-zoo APIs, model families, config patterns, tensor shapes, and script/DDP guidance.references/troubleshooting.mdfor PyTorch import, legacy dependency, CUDA, DDP, pretrained download, and tensor-shape failures.
Skill-owned script
scripts/torch_video_model_smoke.py— safe helper that creates a GluonCV Torch config, selects a model, disables pretrained weights by default, lists the 48-name registry, and can run a CPU forward pass on a synthetic[N, C, T, H, W]tensor. Add--cudaonly when a CUDA-enabled Torch install is actually available.
Typical CPU sanity flow
python sub-skills/torch-video-workflows/scripts/torch_video_model_smoke.py --list-models
python sub-skills/torch-video-workflows/scripts/torch_video_model_smoke.py \
--model resnet18_v1b_kinetics400 --classes 400 --frames 1 --height 224 --width 224
Expected verified signal for the default CPU smoke is an output tensor shape of (1, 400) for resnet18_v1b_kinetics400 with pretrained=False.
Cross-links
- Route MXNet action-recognition and other GluonCV MXNet models to
../mxnet-model-zoo/. - Route video dataset/frame-list preparation and transforms to
../data-transforms-datasets/. - Route full train/eval/inference command templates to
../training-evaluation-scripts/after model/config choices are known.
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).