Skip to content

imvickykumar999/Video-Colorization

Repository files navigation

Video_colorization.py

pip install -r requirements.txt

Uploaded PlayList


Transformed Video

coloured.video.-.jane.kha.mera.jigar.gya.ji.mp4

It took 20 minutes to transform only 10 seconds video.

Original Video

oldsong.mp4

Clone the repository; install dependencies

gh repo clone imvickykumar999/Video-Colorization
pip install requirements.txt

Colorize! This script will colorize an image. The results should match the images in the imgs_out folder.

python demo_release.py -i imgs/output.jpg

Model loading in Python The following loads pretrained colorizers. See demo_release.py for some details on how to run the model. There are some pre and post-processing steps: convert to Lab space, resize to 256x256, colorize, and concatenate to the original full resolution, and convert to RGB.

import colorizers
colorizer_eccv16 = colorizers.eccv16().eval()
colorizer_siggraph17 = colorizers.siggraph17().eval()

Original implementation (Caffe branch)

https://pub.towardsai.net/colorizing-images-with-deep-learning-a34d11587643

The original implementation contained train and testing, our network and AlexNet (for representation learning tests), as well as representation learning tests. It is in Caffe and is no longer supported. Please see the caffe branch for it.

Citation

If you find these models useful for your resesarch, please cite with these bibtexs.

@inproceedings{zhang2016colorful,
  title={Colorful Image Colorization},
  author={Zhang, Richard and Isola, Phillip and Efros, Alexei A},
  booktitle={ECCV},
  year={2016}
}

@article{zhang2017real,
  title={Real-Time User-Guided Image Colorization with Learned Deep Priors},
  author={Zhang, Richard and Zhu, Jun-Yan and Isola, Phillip and Geng, Xinyang and Lin, Angela S and Yu, Tianhe and Efros, Alexei A},
  journal={ACM Transactions on Graphics (TOG)},
  volume={9},
  number={4},
  year={2017},
  publisher={ACM}
}

Input command in Curl Commands Online

curl \
    -F 'image=https://keyassets.timeincuk.net/inspirewp/live/wp-content/uploads/sites/12/2019/01/BW-using-curves.jpg' \
    -H 'api-key:c34c7088-11a1-456b-9a77-1384500eb46f' \
    https://api.deepai.org/api/colorizer 

Output Response : deepai.org need payment of 5 doller per month.

I avoid such websites which need payments, this repository can do same for free.

{
    "status": "Out of API credits - please enter payment info in your dashboard: https://deepai.org/dashboard"
}

Output Video on : YouTube

image