The project developed an end-to-end system that can colorize grayscale images effectively using a deep neural network. We leverage the General Adversarial Networks, wherein two models, the generative and discriminative models are trained simultaneously. In this method, a grayscale image is fed into a Generative Adversarial Network (GAN), which generates a colored rendition of the original image. The training procedure will use a Discriminative network to distinguish between real and false images, while the GAN will attempt to trick the Discriminative network by producing colors that provide the illusion of authenticity. We want to construct a stable and accurate system for automated grayscale image colorization using this combination approach.
Top Row - Input Grayscale Image
Middle Row - Output as per our model
Bottom Row - Ground Truth
Go to the directory containing requirements.txt
pip install -r requirements.txtGo to the materials directory, you will find a text file containing a drive link. The drive link contains our pretrained model. Download the zip file and extract them to the location where the file crayons.py exists.
After that, load any grayscale image into the directory having crayons.py and simple run the program using
python3 crayon.pyGo the directory having train.py and simply run the program using
python3 train.pyNote: Running train.py can take time. In our case, it took approximately 20 hours when trained on Single Nvidia A100 GPU
- Isola, P., Zhu, J., Zhou, T., Efros, A. A. (2016). Image-to-Image Translation with Conditional Adversarial Networks. ArXiv. /abs/1611.07004
- https://github.com/mberkay0/image-colorization
Varun Sreedhar, Jignesh Kirti Nagda, and Venkhatesh Arunachalam

