Practical overview
When it fits
Use it when a workflow needs an optical-flow estimate from two image files and can work with the command-line script and .flo output.
Who it is for
- Computer-vision developers who need motion fields from pairs of images.
- Researchers or practitioners evaluating SPyNet-based optical-flow results.
Documented uses
- Estimate apparent motion between two image frames.
- Produce a .flo motion-field file for downstream computer-vision processing.
- Select among the repository's model variants for an optical-flow run.
Requirements & limits
- The README demonstrates a Python invocation using run.py and the sintel-final model.
- The project is implemented in Python with PyTorch.
- The author cautions that correctness is not guaranteed and reports matching the original implementation only in examples tried.
- The repository says to follow the original authors’ licensing terms, which it describes as allowing non-commercial and scientific research use of the models.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Estimate optical flow for an image pair
Pass two image paths to the documented script and specify a .flo output path.
Before you start
- The repository's Python script, run.py
- Paths to the two input images
- A chosen model name; the documented example uses sintel-final
Steps
Choose a model; the README example uses sintel-final.
Supply the first image with --one and the second with --two.
Set --out to the desired .flo output path.
Expected outcome
The command requests an optical-flow result for the image pair at the specified .flo path.
Guide limitations
- The repository does not guarantee that this reimplementation is correct.
- The README directs users to model papers and code for details on the available model choices.
- The README says to consult the original authors’ licensing terms; it describes the models as free for non-commercial and scientific research purposes.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 17 November 2026
- Original website title
- sniklaus/pytorch-spynet · Official homepage title · retained in its source language

