Skip to content

Auto Colourization of Grayscale Images using Deep Convolutional Neural Networks

License

Notifications You must be signed in to change notification settings

raghavgupta0296/ColourNet

Repository files navigation

ColourNet

Auto Colourization of Grayscale Images using Deep Convolutional Neural Networks

People colour old black and white photographs using Photoshop. This model automates the colourization process without human intervention or work.

Dataset

LabelMe Dataset - Coast & Beach, Open Country, Forest, Street images; 256x256 ~1k images

Input-Output

RGB images converted to YUV format because the channels can be separated into intensity and chrominance
Y channel - Intensity - Input
UV channels - Chrominance - Output

In case of test image:
Input channel Y is concatenated with predicted output UV channels
YUV image -> RGB format - final output coloured image

Model

The breakdown of the model

  1. A chopped VGG-16 Net for extracting feature layers
  2. Parallel inverse convolution layers to bring those extracted layers in the same ht-wid dimension
  3. Concatenating the layers to form a hypercolumn. It contains a lot of information about the input image.
  4. A convolutional network taking in the hypercolumn and producing the output channels.
  5. Used Batch Normalisation and ReLu in between layers

Error & Optimization

Euclidean distance between each pixel value in:

  1. Predicted UV channels and Real Output UV channels
  2. Guassian Blur of Predicted UV channels and Guassian Blur of Real Output UV channels (Kernel size 3)
  3. Guassian Blur of Predicted UV channels and Guassian Blur of Real Output UV channels (Kernel size 5)
    Error = Average of 1,2,3

Optimizer - Adam lr=0.001 epsilon=e-08

References

[http://tinyclouds.org/colorize/]
[http://cs231n.stanford.edu/reports/2016/pdfs/205_Report.pdf]
[https://arxiv.org/abs/1411.5752]

Examples

About

Auto Colourization of Grayscale Images using Deep Convolutional Neural Networks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages