- This project is based on the methods proposed in the paper Colorful Image Colorization, and we aim to improve the performance via training the ECCV16 Architecture, a standard residual convolutional network proposed by the authors, using Generative Adversarial Networks.
- ECCV16 Architecture is used as the Generator.
- We are using a pre-trained VGG19 model as the Feature extractor, a novel approach to compare images and use that comparison to compute the loss. Two images are passed in it, and the activations of the 18th layers are taken for both the images and then these activations are used to calculate the loss using RMSE, MSE etc., between the two activations.
- Discriminator is made up of simple architecture which takes an image as input and converts it into a single no. after passing through several convolutional blocks.
- Data can be downloaded from Kaggle/aayush9753. We have curated the data by collecting 6000 colourful 400X400 images and converted them into grayscale.
- Training of the model either from scratch or further training of our models can be done through ECV_Gan_Training.ipynb. We trained it on the Kaggle Platform using a GPU accelerator. You can see our original training code and cell outputs here - gan-ecv-Kaggle.ipynb or at Kaggle.
- To test or to generate colorful images, go through the Test.ipymb. It provides methods to generate multiple colotful images at a time via providing the path.
- The Pre-trained model can be downloaded from this Google Drive.
Black and White Image | Colorized Image |
---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
This project is licensed under the MIT License.
@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}
}