Skip to content

abhishekvasu94/Image-colourisation-using-Conditional-GAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Image-colourisation-using-Conditional-GAN

This project uses a conditional GAN to convert grayscale images into colour images. The generator was fed a grayscale image and was tasked to produce the output in the LAB format. The discriminator was fed a concatenation of the grayscale image and its LAB counterpart, and was tasked to recognise the true images from synthetically generated ones. The architecture of the GAN follows that of the U-Net mode.

Input test image

The test image shown above was resized to an image of size 32x32, and fed to the input of the generator.

Output of the GAN

The output of the GAN is as shown above

Requirements

Python 2

Numpy

Keras

Tensorflow

Scikit-image

Steps

  1. Clone the repo

  2. Make sure relevant packages are installed

  3. cd src/

  4. Run "python gan.py" to train the GAN. The discriminator and generator models will be saved.

  5. Run "python test.py" to test the generator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages