Giter Club home page Giter Club logo

keras-image-regression's Introduction

Gifs instead of introduction

Minimal example for predicting rgb from coordinates

Basically, thats it, we will train neural net to predict color from pixel coordinate: (x,y)->(r,g,b). Another fancy name for that kind of problem is regression problem.

My first step was to reproduce hardmaru's work with CPPN. Lets define network which takes two inputs and gives three outputs. This would be our minimal example.

But this is not particulary intresting one, because we drawing picture that we already have without adding anything interesting to it.

Bit more complex

It may be useful to add third, excessive, input R - distance from pixel to center of the image: (x,y,r)->(r,g,b) And this is where things will get intresting, because we will train our network with implicit (for the network) rule, but network intristically doesn't care about such constrain and we can feed into net whatever we want. My own experiments were pretty simple. I just substracted constant value from R, and made a short frame sequences.

Wild GRU appears

And then to my mind come strange idea about using reccurent unit in this network. This does not make much sence from machine learning perspective, but i gave it a shot.

Interpolating between images

I though it would be fun to see how we can interpolate using this technique. We can use as third parameter some kind of bias, when bias is -1 we want to see one image, but when bias equal 1 we would want to see another image.

(x,y,b)->(r,g,b)

Sliding bias value we can smoothly transition from plane of first image to second one.

keras-image-regression's People

Watchers

James Cloos 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.