AGENT SKILL

data-preparation

Prepare raw videos and annotations for the 3D-ResNets-PyTorch dataset loaders.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
data-preparation
license
MIT
metadata
{ "disco-role": "operating" }
description
Prepare raw videos and annotations for the 3D-ResNets-PyTorch dataset loaders.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

Data preparation

Use this sub-skill when a user needs raw videos converted into the directory and JSON formats consumed by 3D-ResNets-PyTorch. For downstream training, validation, or inference flags after data is prepared, route to training-and-inference; for top-level routing, return to the root skill.

Fast routing

User needs Open/use
Extract RGB JPEG frames from Kinetics, ActivityNet, UCF101, HMDB51, or Moments in Time videos scripts/extract_video_frames.py, then workflows
Convert raw RGB videos to HDF5 files scripts/extract_video_hdf5.py, then workflows
Build Kinetics/UCF101/HMDB51/MIT annotation JSON files scripts/build_annotation_json.py, then data formats
Add missing ActivityNet fps fields build_annotation_json.py activitynet-add-fps, then ActivityNet workflow
Diagnose missing videos, empty loaders, flow/jpg assertions, or long HDF5 names troubleshooting

Core rules to preserve

  • Prepared JPEG layout is normally <video_root>/<label>/<video_id>/image_00001.jpg; ActivityNet raw extraction is flat and produces <video_root>/v_<id>/image_00001.jpg.
  • Prepared RGB HDF5 layout is normally <video_root>/<label>/<video_id>.hdf5 with a variable-length byte dataset named video. The bundled HDF5 extractor does not create optical-flow datasets.
  • --file_type jpg must be paired with --input_type rgb. The repository asserts that flow is supported only when --file_type hdf5, and flow HDF5 must contain video_u and video_v datasets prepared elsewhere.
  • For frame-directory annotations, segments are one-based half-open ranges such as [1, n_frames + 1]. For RGB HDF5 annotations, use zero-based half-open ranges [0, n_frames].
  • ActivityNet JSON must have per-video fps values before the ActivityNet loader can convert time segments to frame indices.

Bundled scripts

Run scripts from this sub-skill directory or call them by path:

python scripts/extract_video_frames.py -h
python scripts/extract_video_hdf5.py -h
python scripts/build_annotation_json.py -h
python scripts/build_annotation_json.py kinetics -h
python scripts/build_annotation_json.py activitynet-add-fps -h

The scripts are self-contained adaptations of the repository utilities; they do not import from or link to the source checkout.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351