Giter Site home page Giter Site logo

stylizing-video's Introduction

Stylizing Video (Better) by Example

Installation

Requirements

Mac Installation

Clone our repository and run git submodule update --init --recursive to set up our EbSynth submodule.

OpenCV

Install both OpenCV 4.3.0 and opencv_contrib from source, making sure to link them at build time by passing in

cmake -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules <opencv_source_directory>

These should be installed to /usr/local to link properly with this project.

We recommend the following workflow:

  1. Clone both repositories to the deps/ directory.
  2. Create a build directory in the cloned opencv repo and cd into it.
  3. Run
cmake -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules ..
make -j4
make install
  1. All set!

Other dependencies

Install FFTW using brew install fftw Next, cd to deps/ebsynth and run the appropriate build script (./build-macos-cpu-only.sh).

Implementation

Guide Generation

Optical Flow-based Guides

We generate inter-image optical flow-based vector fields that encode the velocity of pixels between images using SimpleFlow from opencv_contrib. We present below vector fields generated on our test set.

  • Vector field from image to image encoded as HSV images:

Cat optical flow in HSV

  • Scalar vx field encoded as grayscale:

Cat vx in gray

  • Scalar vy field encoded as grayscale:

Cat vy in gray

Demo

Please see here for a demo of the final product, including an extension to neural style transfer-based keyframes.

Citations

Ondřej Jamriška, Šárka Sochorová, Ondřej Texler, Michal Lukáč, Jakub Fišer, Jingwan Lu, Eli Shechtman, and Daniel Sýkora. 2019. Stylizing Video by Example. ACM Trans. Graph. 38, 4, Article 107 (July 2019), 11 pages. https://doi.org/10.1145/3306346.3323006

Michael W. Tao, Jiamin Bai, Pushmeet Kohli, and Sylvain Paris. "SimpleFlow: A Non-iterative, Sublinear Optical Flow Algorithm". Computer Graphics Forum (Eurographics 2012), 31(2), May 2012.

stylizing-video's People

Contributors

bblinn2017 avatar ctrotz avatar isamilefchik avatar maggie1059 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

stylizing-video's Issues

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.