Practical overview
When it fits
Use it when working with TSN experiments and dataset lists, particularly when you need the repository's documented UCF101 training and checkpoint-evaluation workflows.
Who it is for
- Researchers reproducing TSN video action-recognition experiments.
- Developers comparing RGB, optical-flow and RGB-difference model inputs.
Documented uses
- Train TSN models from labeled video dataset lists.
- Evaluate saved checkpoints using the standard TSN testing protocol.
- Experiment with three documented input modalities.
Requirements & limits
- Training examples use
main.py; checkpoint evaluation usestest_models.py. - Optical-flow extraction and video-list generation require the original TSN codebase.
- A recursive clone is needed for the inception-series architectures.
- The maintainers characterize this repository as historical and recommend MMAction as its successor.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Train and test an RGB TSN model on UCF101
Follow the documented RGB example to train a TSN model and evaluate its saved checkpoint.
Before you start
- A recursive clone of the repository.
- UCF101 RGB training and validation lists.
- The repository's Python and PyTorch environment.
Steps
Clone the repository with its submodules using the command below.
git clone --recursive https://github.com/yjxiong/tsn-pytorchRun the README's
main.pyUCF101 RGB training command with the dataset train and validation lists and the documented BNInception settings.Use
test_models.pywith the RGB validation list and the resulting checkpoint to evaluate it using the standard TSN testing protocol.
Expected outcome
A trained RGB TSN checkpoint and a standard-protocol evaluation whose scores can be saved to a file.
Guide limitations
- The documented command is an example configured for UCF101 and BNInception.
- Recursive cloning is required for inception-series architectures.
Train and test an optical-flow TSN model
Use the documented flow-model workflow to train and evaluate a TSN checkpoint.
Before you start
- A recursive clone of the repository.
- Optical-flow data and UCF101 flow train and validation lists.
- Optical-flow extraction and video-list generation using the original TSN codebase.
Steps
Prepare optical-flow data and video lists using the original TSN codebase.
Run the README's
main.pyUCF101 Flow example with the flow train and validation lists and the documented BNInception settings.Pass the resulting checkpoint and validation list to
test_models.py, using the documented flow prefix and score-file option.
Expected outcome
A trained optical-flow TSN checkpoint evaluated with the standard TSN testing protocol.
Guide limitations
- Optical-flow extraction and video-list generation are outside this repository and require the original TSN codebase.
- The documented training example uses UCF101 and BNInception.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 4 November 2026
- Original website title
- yjxiong/tsn-pytorch · Official homepage title · retained in its source language
Related options
MMAction — The maintainers recommend MMAction as the successor toolbox; they state it includes TSN and other action-understanding frameworks.

