Skip to content

🎨 A foreground color predictor built with TensorFlow

Notifications You must be signed in to change notification settings

gantoreno/tensorflow-color-predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tensorflow Color Predictor

A Tensorflow neural network that receives RGB values and predicts an optimal foreground color for optimized legibility and contrast ratio.

Usage

You'll need to have tensorflow, numpy, and pyfiglet to get the project up and running.

First, clone the repo:

$ git clone https://github.com/gantoreno/tensorflow-color-predictor

Move into the project directory, and run the main.py file with Python 3.x:

$ cd tensorflow-color-predictor
$ python3 main.py

After that, a model will be created in the models directory once, every future execution will load the saved model.

To generate a new training dataset, run the following command:

$ node utils/randomColor.js > data/train.json

About

🎨 A foreground color predictor built with TensorFlow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published