Practical overview
When it fits
Use it when you have two image files and want to run the documented command-line optical-flow example or explore LiteFlowNet in PyTorch.
Who it is for
- Computer-vision practitioners working with motion between image pairs.
- PyTorch users exploring or comparing optical-flow implementations.
Documented uses
- Estimate image motion between two supplied images.
- Export an optical-flow result to a .flo file.
- Explore a PyTorch implementation of LiteFlowNet or compare its output with the original Caffe implementation.
Requirements & limits
- CuPy is required because the correlation layer is implemented in CUDA using CuPy.
- The README identifies three model choices but only demonstrates the default model in its command.
- The author reports close results in examples tried but notes numerical differences and does not guarantee correctness.
- The README directs users to consult the original authors' licensing terms and to cite and acknowledge the work.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Run the documented two-image optical-flow example
Pass two image paths to the command-line example and specify a .flo output path.
Before you start
- The repository's Python implementation and its run.py script.
- CuPy, required for the CUDA correlation layer.
- Two input images and an environment with the dependencies needed by the implementation.
Steps
Install CuPy using pip or a suitable CuPy binary package.
Provide paths to the first and second images.
Run the command below.
python run.py --model default --one ./images/one.png --two ./images/two.png --out ./out.flo
Expected outcome
The command is documented to write optical-flow output to the specified .flo path.
Guide limitations
- The author does not guarantee correctness and notes numerical differences from the original Caffe implementation.
- The README says three models are available but gives details only for the default model in its example.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 14 November 2026
- Original website title
- sniklaus/pytorch-liteflownet · Official homepage title · retained in its source language

