Giter VIP home page Giter VIP logo

lla-flow's Introduction

LLA-FLOW

This repository contains the source code for the paper:

LLA-FLOW: A Lightweight Local Aggregation on Cost Volume for Optical Flow Estimation
ICIP 2023
Jiawei Xu, Zongqing Lu and Qingmin Liao

Requirements

Install the environment, and the code runs well under PyTorch 1.10.

conda env create -f requirements.yaml

Pretrained Models

Pretrained models can be downloaded from the Releases Page.

Demos

Place a sequence of frames in the ./demo_imgs, run the script and you can view the results in ./demo_imgs/result:

bash demo.sh

Datasets Preparation

To train and evaluate the optical flow methods, you will need to download the required datasets.

The datasets folder should be placed in the root directory of the project.

├── datasets
    ├── FlyingChairs_release
        ├── data
    ├── FlyingThings3D
        ├── frames_cleanpass
        ├── frames_finalpass
        ├── optical_flow
    ├── Sintel
        ├── test
        ├── training
        ├── bundler
    ├── KITTI
        ├── testing
        ├── training
    ├── HD1K
    	├── hd1k_input
    	├── hd1k_flow_gt

Training

Training requires two 12GB VRAM GPUs. If you include the GMA module, it might require two 16GB VRAM GPUs.

Training based on RAFT:

bash train_raft.sh

Training based on GMA:

bash train_gma.sh

Evaluation

Select the command from evaluate.sh for model evaluation. For example:

python evaluate.py --model checkpoints/lla-raft-sintel.pth --mixed_precision --dataset sintel

Acknowledgement

The overall code framework is adapted from RAFT and GMA. We thank the authors for the contribution.

lla-flow's People

Contributors

mansang127 avatar

Stargazers

 avatar HuGe avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.