Giter VIP home page Giter VIP logo

optical-flow-visualization-pytorch's Introduction

Optical Flow Visualization for PyTorch

License: MIT

This repository is a PyTorch fork of the OpticalFlow_Visualization (flow_vis) repository, originally published under the MIT license. The optical flow visualization follows the color encoding proposed in the paper "A database and evaluation methodology for optical flow" by Baker et al. published at ICCV 2007 [1].

Installation

Simply run the following command to install flow_vis_torch.

pip install git+https://github.com/ChristophReich1996/Optical-Flow-Visualization-PyTorch

Usage

Convert a given flow of the shape [batch size (optional), 2, height, width] to an RGB image of the shape [batch size (optional), 3, height, width] by calling flow_vis_torch.flow_to_color.

import flow_vis_torch
flow_rgb = flow_vis_torch.flow_to_color(flow)

For a detailed example have a look at the example script.

Visualizations

Flow maps taken from the MPI Sintel Flow Dataset [2].

Output flow_vis_torch Output flow_vis
1 2
3 4
5 6

References

[1] @inproceedings{Baker2007,
        title={{A Database and Evaluation Methodology for Optical Flow}},
        author={Baker, Simon and Roth, Stefan and Scharstein, Daniel and Black, Michael J and Lewis, JP and Szeliski, Richard},
        booktitle={{International Conference on Computer Vision (ICCV)}},
        pages={1--8},
        year={2007},
        organization={IEEE}
}
[2] @inproceedings{Butler2012,
        title={{A Naturalistic Open Source Movie for Optical Flow Evaluation}},
        author={Butler, Daniel J and Wulff, Jonas and Stanley, Garrett B and Black, Michael J},
        booktitle={{European Conference on Computer Vision (ECCV)}},
        pages = {611--625},
        year = {2012},
        publisher={Springer}
}

optical-flow-visualization-pytorch's People

Contributors

christophreich1996 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.