Data preparation

From VectorSpaceLab/AREX-Skill · View interactive version

Data preparation is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Prepare raw videos and annotations for the 3D-ResNets-PyTorch dataset loaders.

How to use this skill

Skill file

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 | CODE0, then workflows |

| Convert raw RGB videos to HDF5 files | CODE0, then workflows |

| Build Kinetics/UCF101/HMDB51/MIT annotation JSON files | CODE0, 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

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.