Skip to content

CryptoSoc/GANGogh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GANGogh

Our primary motivation in studying GANs this semester was to try to apply a GAN-derived model to the generation of novel art. Much of the work in deep learning that has concerned itself with art generation has focused on style, and specifically the style of particular art pieces.

By building off of the GAN model, we hoped to build a deep-net that was capable of not only learning a distribution of the style and content components of many different pieces of art, but was also able to novelly combine these components to create new pieces of art. The task of novel content generation is much more difficult than applying the style from one particular piece of art to the content of another.

Note: Code heavily inspired and built off of the improved wasserstein GAN training code available and found at: https://github.com/igul222/improved_wgan_training

You can read more about the project here

Usage:

Step 1 - Gather training data

We used training data from wikiart.org, but any training data will do. It's prefered to download this training data from this torrent or the Google Drive file. If both of those fail, consider using scape_wiki.py as a last resort.

Step 2 - Prepare the training data

Use picStuff.py to create image data set of 64x64 pieces of art scraped from wikiart. Take note of the root and PATH variables and modify accordingly.

Step 3 - Modify files

Update the path to the dataset in wikiartGenre.py. Also, update the styles variable dictating the number of training images per genre. If using the traning data set linked, above, use the following:

styles = {'abstract': 14999,
          'animal-painting': 1798,
          'cityscape': 6598,
          'figurative': 4500,
          'flower-painting': 1800,
          'genre-painting': 14997,
          'landscape': 15000,
          'marina': 1800,
          'mythological-painting': 2099,
          'nude-painting-nu': 3000,
          'portrait': 14999,
          'religious-painting': 8400,
          'still-life': 2996,
          'symbolic-painting': 2999}



Step 3 - Make art!

Run GANGogh.py

About

Using GANs to create Art

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%