Isola, Phillip, et al. Image-to-Image Translation with Conditional Adversarial Networks. 2016. DOI.org (Datacite), https://doi.org/10.48550/ARXIV.1611.07004.

Image Coloration Using GANs

The Pix2Pix Generative Adversarial Network, or GAN, is an approach to training a deep convolutional neural network for image-to-image translation tasks.

Description

 

color lab

Generator Network

Generator model described in Pix2Pix research paper is the encoder - decoder architecture or U Net architecture. I used Encoder - Decoder Architecture

Screenshot from 2022-11-24 23-13-01.png

Discriminator Network

Below discriminator network is used to train against generator

Screenshot from 2022-11-24 23-27-08.png

Used BCEWithLogitsLoss and trained it with Cifar 10 datasets. Black & White images are made for input using OpenCV

 

Results

Model has trained pretty well and was enough to fool the discriminator

Examples:

bnw.png color.png

 

img