OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Pytorch Liteflownet

A Python reimplementation of LiteFlowNet in PyTorch that estimates optical flow between a pair of images and can write the result as a .flo file.

Independent OpenViST project profile, based on linked sources.

Pytorch Liteflownet — A direct two-image input and .flo output workflow
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

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

  1. Install CuPy using pip or a suitable CuPy binary package.

  2. Provide paths to the first and second images.

  3. Run the command below.

    Documented command
    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.
Evidence and transparency

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