Skip to content

Latest commit

 

History

History

Art_example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Example: AI paints an image

This example shows the neural network (multilayer perceptrons) to paint an image

Code Example

Motivation

My inspiration: http://cs.stanford.edu/people/karpathy/convnetjs/demo/image_regression.html

Description

My model structure

  • 7 hidden layers.
  • Input layer have 2 ( x, y coordinate or pixels on an image).
  • Output layer have 3 (red, breen and blue).

AI architec

Concept

Input to the model are x, y coordinates (on an target image).

AI architec

** In python, size of an image is height x width

If there is one input to the model.

My_network_paint

If there are many inputs (many examples) to the model.

My_network_paint

For target dataset to train my model, I use real an image as the target dataset. When neural network learns from the target image, it can predict 3 outputs are red, green, blue (RGB).

Result

AI-Drawing

The picture on the left is original and the right hand side is created by my neural network.