Skip to content

Project of Deep Learning: Implementation of neural network ArtGAN

Notifications You must be signed in to change notification settings

aliciafmachado/artgan-implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implementation of ArtGAN

Project of Deep Learning: Implementation of the neural network ArtGAN

We implement the article presented here: https://arxiv.org/pdf/1702.03410.pdf

Project in colaboration with Iago Martinelli Lopes (Maicken)

Usage

HOW TO USE:

  • First get the dataset Wikiart which is disponible at: http://web.fsktm.um.edu.my/~cschan/source/ICIP2017/wikiart.zip
  • Then you must add the files disponible in the folder extra in the Wikiart dataset folder
  • After that you must create an environment with conda and install the necessary libraries
  • Finally you must run in the command line: $ python main.py [artist/genre/style] [version]

Tips:

  • You may use aria2 to download the dataset if through command line, since it's faster
  • You may also use tmux to leave the process in background

ArtGAN innovation

The work proposed in the article is an extension of a GAN. It proposes a semi-supervised learning strategy, which consists of allowing backpropagation of the loss function w.r.t. the labels (randomly assigned to each generated images) to the generator from the discriminator. With this feedback, the generator can learn better - in terms of image quality - and faster than a normal GAN.

Results

Here we give some examples of images produced by the neural network:

Artist

The images, from left ot right and up to down, correspond to the artists labels Martiros Saryan, Nicholas Roerich, Camille Pissarro, Albrecht Durer, Ivan Aivazovsky and Vincent van Gogh.

alt text

Here, we show our Discriminator and Generator loss for 100 epochs of training:

alt text

Genre

Here, we present the results for Genre. The columns of images, from left to right, correspond to the genre labels Portrait, Cityscape and Landscape.

alt text

Here, we show our Discriminator and Generator loss for 100 epochs of training:

alt text

Style

These are the results for style. We have that the images, from left to right and up to down, correspond to Baroque, Contemporary Realism, Impressionism, Naive Art Primitivism, Pop Art and Romanticism.

alt text

Here, we show our Discriminator and Generator loss for 100 epochs of training:

alt text

CIFAR-10

Here we show the results for CIFAR-10. Each image corresponds to a label in the CIFAR-10 dataset:

alt text

Here, we show our Discriminator and Generator loss for 50 epochs of training:

alt text

About

Project of Deep Learning: Implementation of neural network ArtGAN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published