Coder Social home page Coder Social logo

t3's Introduction

Improving Video Colorization by Test-Time Tuning (ICIP'23)

In this repository we provide code of the paper:

Improving Video Colorization by Test-Time Tuning

Yaping Zhao, Haitian Zheng, Jiebo Luo, Edmund Y. Lam

paper link: https://ieeexplore.ieee.org/abstract/document/10222579

Teaser Image

Dependencies

For information on how to install PyTorch, please refer to the PyTorch website. FFmpeg should be installed with libx264 support, which can be installed in Anaconda by using conda install x264 ffmpeg -c conda-forge.

Usage

First, download the model by running the download script:

bash download_model.sh

To reproduce the main results from our paper, simply run:

python test_vid4.py
python test_set8.py

The input video will be automatically restored and colorized based on the reference color frames using the model. If you want to perform restoration only, use --disable_colorization option.

Other options:

  • --gpu: Use GPU for the computation (recommended). Defaults to false.
  • --disable_colorization: Disable colorization and only perform restoration with enhancement. Defaults to false.
  • --mindim: Minimum edge dimension of the input video. Defaults to 320.

Preparing Reference Images

To prepare reference color images for your own video, it is recommended to first extract reference frames from the video using a scene detection technique such as pyscenedetect. Afterwards, colorize them by leveraging image editing software or recent interactive colorization techniques such as the Interactive Deep Colorization [Zhang et al. 2017].

Notes

  • We recommend using GPU with 4GB+ memory for fast computation.
  • Provided model and sample code are under a non-commercial creative commons license.

Dataset

Pre-trained models are provided in the input folder. Therefore, you can quickly get started without downloading datasets.

Citation

Cite our paper if you find it interesting!

@inproceedings{zhao2023improving,
  title={Improving Video Colorization by Test-Time Tuning},
  author={Zhao, Yaping and Zheng, Haitian and Luo, Jiebo and Lam, Edmund Y},
  booktitle={2023 IEEE International Conference on Image Processing (ICIP)},
  pages={166--170},
  year={2023},
  organization={IEEE}
}

This code is implemented based on DeepRemaster.

t3's People

Contributors

indigopurple avatar

Stargazers

 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.