Giter Site home page Giter Site logo

ahmadmoussa / neural-color-spaces-generation-and-extraction-of-color-palettes-with-adversarial-vaes Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 11.01 MB

Variational Autoencoder that can generate color palettes but also extract them from Images

Jupyter Notebook 100.00%

neural-color-spaces-generation-and-extraction-of-color-palettes-with-adversarial-vaes's Introduction

Neural Color Spaces

Generation and Extraction of Color Palettes with Adversarial Variational Auto Encoders

Abstract

The process of creating a meaningful and perceptually pleasing color palette is an incredibly difficult task for the inexperienced practitioner. In this paper we show that the Variational Auto Encoder can be a powerful creative tool for the generation of novel color palettes as well as their extraction from visual mediums. Our proposed model is capable of extracting meaningful color palettes from images, and simultaneously learns an internal representation which allows for the sampling of novel color palettes without any additional input.

Notes

  • There are two notebooks, one for the vanilla VAE and another the VAE-GAN
  • The VAE, as well as the VAE-GAN can be trained in a couple of hours on Google Colab
  • Pre-trained model weights can be found in the .ZIP file named 'Pre-trained-model-weights.zip'
  • Keras with Tensorflow 1.X was used for training the VAE-GAN
%tensorflow_version 1.x
import tensorflow as tf
device_name = tf.test.gpu_device_name()
if device_name != '/device:GPU:0':
  raise SystemError('GPU device not found')
  pass
print('Found GPU at: {}'.format(device_name))
  • To connect Google Colab to your Google Drive
from google.colab import drive
drive.mount('/content/gdrive')

!ls "/content/gdrive/My Drive/path/to/dataset/and/model/weights/"
  • The dataset can be downloaded from this public google drive repository
  • Running it locally should not be very different, but make sure to use the appropriate tensorflow/keras/python versions or you're likely to obtain errors

Model Architectures

CNN-VAE-LSTM

CNN-VAE-LSTM-GAN

neural-color-spaces-generation-and-extraction-of-color-palettes-with-adversarial-vaes's People

Contributors

ahmadmoussa avatar

Stargazers

 avatar  avatar Melike Bektaş avatar YUIKO SUYAMA avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.