Git Product home page Git Product logo

deep-landscape's Introduction

DeepLandscape: Adversarial Modeling of Landscape Videos

Implementation of DeepLandscape: Adversarial Modeling of Landscape Video in PyTorch


Official repository for the paper E. Logacheva, R. Suvorov, O. Khomenko, A. Mashikhin, and V. Lempitsky. "DeepLandscape: Adversarial Modeling of Landscape Videos" In 2020 European Conference on Computer Vision (ECCV).

teaser image

GIF sample

gif sample #1


Requirements

  • pip3 install -r requirements.txt

Usage

Download approprate everything from here and put in the results directory.

Homographies

Use homographies/manual_homographies to reproduce the paper; use homographies/manual_homographies_x2.5 if you want the speed to match the speed of real videos in test data; use homographies/selected_homographies to get the best visual results.

Animate Images

Move images you like to animate to results/test_images. Then run

PYTHONPATH=`pwd`:$PYTHONPATH runfiles/encode_and_animate_test_all256_with_style.sh <homography_dir>

Results will be saved in results/encode_and_animate_results.

Generate Synthetic Videos

To use the 256x256 generator run

./generate.py config/train/256.yaml --homography_dir <homography_dir>

Results will be saved in results/generated

Calculate Metrics

TBD

Super-Resoultion

See superres/README.md

Train

Train the Generator

You should prepare an lmdb dataset:

./prepare_data.py <data type (images or videos)> <input data path> --out <output lmdb directory> --n_worker <number of workers>

To train the 256x256 generator:

./train.py configs/train/256.yaml --restart -i <path to image data> -v <path to video data>

Train the Encoder

You should prepare a dataset:

PYTHONPATH=`pwd`:$PYTHONPATH runfiles/gen_encoder_train_data_256.sh

To train the 256x256 encoder:

PYTHONPATH=`pwd`:$PYTHONPATH runfiles/train_encoder_256.sh

Download Test Data

vid_dl/main.py <output directory>


Acknowledgment

This repository is based on Kim Seonghyeon's Implementation A Style-Based Generator Architecture for Generative Adversarial Networks in PyTorch

The Superresolution part is based on https://github.com/xinntao/BasicSR

Mean optical flow calculation is taken from https://github.com/avinashpaliwal/Super-SloMo

Segmentation is taken form https://github.com/CSAILVision/semantic-segmentation-pytorch

Metrics


Citation

If you found our work useful, please don't forget to cite

@inproceedings{Logacheva_2020_ECCV,
  author = {Logacheva, Elizaveta and
            Suvorov, Roman and
            Khomenko, Oleg and
            Mashikhin, Anton and
            Lempitsky, Victor
  },
  title = {DeepLandscape: Adversarial Modeling of Landscape Videos},
  booktitle = {Proceedings of the European Conference on Computer Vision (ECCV)},
  month = {August},
  year = {2020},
}

deep-landscape's People

Contributors

olegkhomenko avatar elimohl avatar kuzhamuratov avatar windj007 avatar

Watchers

James Cloos 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.