3D ResNets PyTorch
Use this root skill when the user asks about the 3D ResNets PyTorch repository, its CLI flags, its dataset layouts, or its video action-recognition workflows.
Read first
references/cli-reference.md
references/troubleshooting.md
references/repo-provenance.md
scripts/check_imports.py
scripts/check_main_help.py
What this skill covers
- Training, validation, inference, and fine-tuning for video action recognition.
- Dataset preparation from raw videos into JPEG frame trees, RGB HDF5 files, and annotation JSONs.
- Checkpoint handling, model-family selection, and result evaluation.
- Common data-layout and runtime compatibility pitfalls.
Route to a sub-skill
training-and-inference
Use this route for:
- Fresh training runs, resume flows, and pretrained fine-tuning.
- Validation-only runs and sliding-window inference.
- Result scoring and DataParallel checkpoint cleanup.
- Questions about model families, class counts,
ft_begin_module, or resume_path / pretrain_path behavior.
Read:
sub-skills/training-and-inference/SKILL.md
sub-skills/training-and-inference/references/workflows.md
sub-skills/training-and-inference/references/model-catalog.md
sub-skills/training-and-inference/references/troubleshooting.md
sub-skills/training-and-inference/scripts/evaluate_results.py
sub-skills/training-and-inference/scripts/strip_dataparallel.py
data-preparation
Use this route for:
- Extracting JPEG frames or RGB HDF5 files from raw videos.
- Building Kinetics, UCF101, HMDB51, MIT, or ActivityNet JSON metadata.
- Adding ActivityNet
fps fields.
- Questions about class directories, split files, HDF5 manifests, or
jpg versus hdf5 layout.
Read:
sub-skills/data-preparation/SKILL.md
sub-skills/data-preparation/references/workflows.md
sub-skills/data-preparation/references/data-formats.md
sub-skills/data-preparation/references/troubleshooting.md
sub-skills/data-preparation/scripts/extract_video_frames.py
sub-skills/data-preparation/scripts/extract_video_hdf5.py
sub-skills/data-preparation/scripts/build_annotation_json.py
Quick runtime helpers
scripts/check_imports.py verifies that the core source modules import from a checkout and applies the temporary legacy Scale alias when needed.
scripts/check_main_help.py prints the full main.py CLI help through the same compatibility shim.
scripts/run_main.py forwards into the repository CLI after preparing the checkout and compatibility shim.
Shared environment facts
This repo expects a Python environment with PyTorch, torchvision, pandas, h5py, scikit-learn, joblib, and FFmpeg/FFprobe available on PATH.
A modern torchvision wheel may not expose torchvision.transforms.Scale. If that happens, use the compatibility shim in scripts/_torchvision_compat.py or a legacy torchvision release that still ships Scale.
Route selection guidance
- If the user already has prepared videos and annotation JSONs, start with
training-and-inference.
- If the user still needs frames, HDF5 files, or split JSONs, start with
data-preparation.
- If the request mentions both, do data preparation first unless the videos and labels are already ready.
- If the user only wants command discovery or environment checks, use the root helpers and the sub-skill references rather than reopening the source repo.
Common handoff sequence
- Prepare or verify the dataset layout with
data-preparation.
- Verify the environment with
scripts/check_imports.py.
- Inspect the CLI with
scripts/check_main_help.py.
- Run the desired training or inference command with
scripts/run_main.py.
- Score or clean outputs with the training-and-inference helpers.
Don’t do this
- Do not point future agents back to the original checkout paths.
- Do not use
flow with JPEG inputs.
- Do not assume resume checkpoints can change architecture.
- Do not score
--inference_no_average JSON with the result evaluator before aggregating segment outputs.
1---2name: "3d-resnets-pytorch"3description: "Routes 3D ResNets PyTorch video action-recognition workflows4 across training, inference, and data preparation."5disable-model-invocation: true6metadata:7 source: https://skillmd.com/skills/vectorspacelab/3d-resnets-pytorch8 disco-role: operating9license: MIT10---1112# 3D ResNets PyTorch1314Use this root skill when the user asks about the 3D ResNets PyTorch repository, its CLI flags, its dataset layouts, or its video action-recognition workflows.1516## Read first1718- `references/cli-reference.md`19- `references/troubleshooting.md`20- `references/repo-provenance.md`21- `scripts/check_imports.py`22- `scripts/check_main_help.py`2324## What this skill covers2526- Training, validation, inference, and fine-tuning for video action recognition.27- Dataset preparation from raw videos into JPEG frame trees, RGB HDF5 files, and annotation JSONs.28- Checkpoint handling, model-family selection, and result evaluation.29- Common data-layout and runtime compatibility pitfalls.3031## Route to a sub-skill3233### `training-and-inference`34Use this route for:3536- Fresh training runs, resume flows, and pretrained fine-tuning.37- Validation-only runs and sliding-window inference.38- Result scoring and DataParallel checkpoint cleanup.39- Questions about model families, class counts, `ft_begin_module`, or `resume_path` / `pretrain_path` behavior.4041Read:4243- `sub-skills/training-and-inference/SKILL.md`44- `sub-skills/training-and-inference/references/workflows.md`45- `sub-skills/training-and-inference/references/model-catalog.md`46- `sub-skills/training-and-inference/references/troubleshooting.md`47- `sub-skills/training-and-inference/scripts/evaluate_results.py`48- `sub-skills/training-and-inference/scripts/strip_dataparallel.py`4950### `data-preparation`51Use this route for:5253- Extracting JPEG frames or RGB HDF5 files from raw videos.54- Building Kinetics, UCF101, HMDB51, MIT, or ActivityNet JSON metadata.55- Adding ActivityNet `fps` fields.56- Questions about class directories, split files, HDF5 manifests, or `jpg` versus `hdf5` layout.5758Read:5960- `sub-skills/data-preparation/SKILL.md`61- `sub-skills/data-preparation/references/workflows.md`62- `sub-skills/data-preparation/references/data-formats.md`63- `sub-skills/data-preparation/references/troubleshooting.md`64- `sub-skills/data-preparation/scripts/extract_video_frames.py`65- `sub-skills/data-preparation/scripts/extract_video_hdf5.py`66- `sub-skills/data-preparation/scripts/build_annotation_json.py`6768## Quick runtime helpers6970- `scripts/check_imports.py` verifies that the core source modules import from a checkout and applies the temporary legacy `Scale` alias when needed.71- `scripts/check_main_help.py` prints the full `main.py` CLI help through the same compatibility shim.72- `scripts/run_main.py` forwards into the repository CLI after preparing the checkout and compatibility shim.7374## Shared environment facts7576This repo expects a Python environment with PyTorch, torchvision, pandas, h5py, scikit-learn, joblib, and FFmpeg/FFprobe available on PATH.7778A modern torchvision wheel may not expose `torchvision.transforms.Scale`. If that happens, use the compatibility shim in `scripts/_torchvision_compat.py` or a legacy torchvision release that still ships `Scale`.7980## Route selection guidance8182- If the user already has prepared videos and annotation JSONs, start with `training-and-inference`.83- If the user still needs frames, HDF5 files, or split JSONs, start with `data-preparation`.84- If the request mentions both, do data preparation first unless the videos and labels are already ready.85- If the user only wants command discovery or environment checks, use the root helpers and the sub-skill references rather than reopening the source repo.8687## Common handoff sequence88891. Prepare or verify the dataset layout with `data-preparation`.902. Verify the environment with `scripts/check_imports.py`.913. Inspect the CLI with `scripts/check_main_help.py`.924. Run the desired training or inference command with `scripts/run_main.py`.935. Score or clean outputs with the training-and-inference helpers.9495## Don’t do this9697- Do not point future agents back to the original checkout paths.98- Do not use `flow` with JPEG inputs.99- Do not assume resume checkpoints can change architecture.100- Do not score `--inference_no_average` JSON with the result evaluator before aggregating segment outputs.