Giter Club home page Giter Club logo

dain_esrgan_deoldify's Introduction

DAIN_ESRGAN_DeOldify

The purpose of this project is to build a video processing pipeline for video frame interplation, super resolution and colorization, based on open source project DAIN, ESRGAN and DEOLDIFY and their pre-trained models. Thanks for the great work of those repos.

It uses docker to setup runtime environment and requires GPU support. You may need to specify addtional nvcc compilation target to build DAIN pytorch extension, depends on your GPU models(You can change it by patch/dain.patch). Please check nvidia offical site.

How to use

Clone the repo and it's dependecies.

git clone --recursive https://github.com/iamyb/DAIN_ESRGAN_DeOldify.git

Setup

Build the docker image. It need take some time to pull all its dependencies.

docker build -t dain_esrgan_deoldify .

Start the container (Notes: I only tested on GPU environment)

docker run -itd --runtime nvidia --name dain_esrgan_deoldify --hostname ubuntu dain_esrgan_deoldify

Login the container

docker exec -it dain_esrgan_deoldify /bin/bash

Usage

Run the example, you can check the result in folder data/output

python run.py -i shanghai1937.mp4

If you want to test your own video, please put it into data/input/your_video.mp4 and execute:

python run.py -i your_video.mp4  

By default, DAIN, ESRGAN and DeOldify will be processed in sequence. If you want to customize the steps, you can use '-p' parameter:

python run.py -i your_video.mp4 -p dain,deoldify,build
python run.py -i your_video.mp4 -p esrgan,build

The 'build' step here is used to combine the final frames into a video.

Samples

Late Qing Dynasty(1908) History Video, Shanghai Sihang Warehouse Battle(1937) History Video

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.