Top Banner
SOME EXPERIMENTS I HAVE DONE WITH ART + DEEP LEARNING Jason Toy
52

machine learning and art hack day

Jan 12, 2017

Download

Technology

jtoy
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: machine learning and art hack day

SOME EXPERIMENTS I HAVE DONE WITH ART + DEEP LEARNING

by Jason Toy

Jason Toy

Page 2: machine learning and art hack day

THE PRESENTATION

show some of my experiments, both testing the limits of other people’s models and training my own models

overview of how the models work

for artists and machine learners in the audience, i tried to make it so you will all learn a little

hopefully inspire some of you to go out and build something awesome

Page 3: machine learning and art hack day

MY BACKGROUND - JASON TOY

my main passion is general artificial intelligence

studied math and computer science

generalists, program a little of everything, master of nothing

founded a couple of companies: rubynow, socmetrics - using ML for mining social media

CEO of filepicker,sold in beginning of 2016

exploring the intersection of machine learning,art, entrepreneurship

Page 4: machine learning and art hack day

DEEP LEARNING VS TRADITIONAL MACHINE LEARNING

mostly automated feature extraction

Page 5: machine learning and art hack day

DEEP LEARNING VS TRADITIONAL MACHINE LEARNING

much better at learning nonlinear relationships

Page 6: machine learning and art hack day

WHAT IS GENERATIVE MODELING

generative vs discriminative

architect of models

GM around for a long time - used in architect, design,games,etc

miniature systems that mimic something in real life, “artist in a box”

more fun; I'm not as interested to increase ad clickthrough rates

Page 7: machine learning and art hack day

DISCRIMINATIVE VS GENERATIVE

generative:

naive bayes

LDA

deep learning

discriminative:

SVM

random forest

linear/logistic regression

Page 8: machine learning and art hack day

GENERATIVE DEEP MODELStweak-able output w/ vectors

Page 9: machine learning and art hack day

EXPERIMENTS

Page 10: machine learning and art hack day

CHAR-RNN

“I'm not going anywhere. I will bring the poorly educated back bigger and better. It's an incredible movement. ”

“We're losing companies, the economy. We are going to save it. We're going to bring the party. Let's Make America Great Again”

“I want to thank the volunteers. They've been unbelievable, they work like endlessly, you know, they don't want to die. My leadership is good”

Page 11: machine learning and art hack day

CHAR-RNN

1vanilla (image classification) 2 sequence output (image -> text) 3 sequence input ( sentiment analysis)

4 seq2seq (machine translation) 5 synced seq2seq (video classification)

Page 12: machine learning and art hack day

CHAR-RNN

RNN - recurrent because they perform the same task for every element of a sequence; typically 2-3 layers

LSTM - long short term memory

similar, state is calculated differently

Page 13: machine learning and art hack day

MY CHAR-RNN EXPERIMENTS

what does Hellen Keller think?

seeing is like or inspirents of a kiss licks, in child, for the last decting of accomplish with me for the mistakes in silence is to keep the moments filled whiter, the chaps of the house language was sends a humanise.

i wish i could presepred its repepenting and the days like the poor discuss of language of the poem in the letters, dotiment in the endless good and eager and over the charicality of the hall of rubbings that I hapmende the comprehend, the birds like your mind to perhaps the not wind I should do?

Page 14: machine learning and art hack day

MY CHAR-RNN EXPERIMENTS

“i love you. Now her before it just numberse idevening with the press over. I was probably ever need to ever admit? Right” - Trump

“life is an economy. I was in the LGBT communities can to the worst of the gun not only the fight are of us safe and I start up these are not grow…” - Hillary

Page 15: machine learning and art hack day

FUTURE CHAR-RNN EXPERIMENTS

train a model to talk like a person with little data? transfer learning?

could we train a model off of a standard “human” model ?

could we train a model to talk in different emotions/styles?

Page 16: machine learning and art hack day

DEEP DREAMING / INCEPTION

Page 17: machine learning and art hack day

A MACHINE LEARNING IMAGE CLASSIFIER

Page 18: machine learning and art hack day

LAYERS LEARNED FEATURES

architects:

imagenet

googlenet

alexnet

Page 19: machine learning and art hack day
Page 20: machine learning and art hack day

GOOGLENET

Page 21: machine learning and art hack day

LAYER AMPLIFICATION

objective function: activate as many neurons in a layer

key trick: push back to image

feedback loop

choose different layers for different effects: conv2/3x3,inception_3a,etc

Page 22: machine learning and art hack day

TEST IMAGE

Page 23: machine learning and art hack day
Page 24: machine learning and art hack day

–Johnny Appleseed

“Type a quote here.”

Page 25: machine learning and art hack day
Page 26: machine learning and art hack day

TRAINING MY OWN DREAMS

Page 27: machine learning and art hack day
Page 28: machine learning and art hack day
Page 29: machine learning and art hack day
Page 30: machine learning and art hack day

INCEPTION FUTURE EXPERIMENTS

train with different image sets - sea life, reptiles?

different objective function - activate only 1 group of neurons?

selective regions of hallucinating?

testing different network architects

Page 31: machine learning and art hack day

NEURALSTYLE

Paint images in the style of any painting

Page 32: machine learning and art hack day

A NEURAL ALGORITHM OF ARTISTIC STYLE

paper: http://arxiv.org/abs/1508.06576

The key finding of this paper is that the representations of content and style in the CNNs are separable.

CNNs - convolutional Neural Network

Page 33: machine learning and art hack day

high layers in the network act as the content of the image

style computed from multiple layers’ filter responses

Page 34: machine learning and art hack day
Page 35: machine learning and art hack day

]?{;./ΠK;

Page 36: machine learning and art hack day

NEURALSTYLE FUTURE EXPERIMENTS

can we automatically find the “good” images from a combination?

can we know beforehand if a combo style/content will look good?

currently trained on vggnet data, what happens if we train it on a different data set, will the art look different?

will a different architect make better art?

Page 37: machine learning and art hack day

MULTIMODAL! STORYTELLING

Page 38: machine learning and art hack day

I ACCIDENTALLY GAVE THE ANIMAL BACK OF MY HEAD , BREATHING DEEPLY . THERE WAS NO DOUBT IN HER EYES , AND I COULD TELL BY THE LOOK ON HIS FACE THAT HE DID N'T APPROVE OF WHAT WAS HAPPENING TO ME . IN FACT , IT MUST HAVE BEEN ONE OF THOSE RARE OCCASIONS , AS WELL AS A PET ANIMAL . HER SCENT FILLED THE AIR . THAT 'S WHAT SHE WAS LOOKING FOR , AND NOW SHE HAD TO STAY AWAKE LONG ENOUGH TO DIG UP THE LEASH

Page 39: machine learning and art hack day

SKIP-THOUGHT VECTORS

sentence -> vectors

Page 40: machine learning and art hack day
Page 41: machine learning and art hack day

TRUMP STORYTELLER

Page 42: machine learning and art hack day

FUTURE NEURAL STORY EXPERIMENTS

train with different text

a “seeing” Hellen Keller version

train on different visual features

Page 43: machine learning and art hack day

AND MANY OTHER EXPERIMENTS…….HOPEFULLY INSPIRING

Page 44: machine learning and art hack day

DATA IS ESSENTIAL

many of these models are built on public datasets

always has been a problem; bigger problem for DL and general models

very hard to get data; how can this be solved?

constantly on my mind ; lets connect me if interested

Page 45: machine learning and art hack day

DL IS NOT ALL FUN AND UNICORNS

data issue

specialized software/hardware pipelines; GPUs

be prepared to wait; think weeks, not hours

model tuning

architect tuning

techniques and architects changing everyday

Page 46: machine learning and art hack day

WHY?

I dream of building larger models

AGI and multi modal models

larger experiments

want to collaborate with cool artists and coders

fun? lets talk!

Page 47: machine learning and art hack day

LINK APPENDIX

Page 48: machine learning and art hack day

STUDY LINKS

what is deep learning: http://www.jtoy.net/2016/02/14/opening-up-deep-learning-for-everyone.html

generative models: https://en.wikipedia.org/wiki/Generative_model

discriminative models: https://en.wikipedia.org/wiki/Discriminative_model

Page 49: machine learning and art hack day

TEST LIVE MODEL LINKS

trump char-rnn model: http://somatic.io/models/WZmmBjZ9

neural style model: http://www.somatic.io/models/5BkaqkMR

neural talk model: http://somatic.io/models/qoEGanRe

romance story telling: http://somatic.io/models/2n6g7RZQ

Page 50: machine learning and art hack day

LINKS

VGG net data used: http://www.robots.ox.ac.uk/~vgg/research/very_deep/

tensorflow version: https://github.com/anishathalye/neural-style

neural style paper: http://arxiv.org/abs/1508.06576

char-rnn code: https://github.com/somaticio/char-rnn-tensorflow

mscoco: http://mscoco.org

imagenet: http://image-net.org/

Page 51: machine learning and art hack day

LINKS

char-rnn: https://github.com/somaticio/char-rnn-tensorflow

tensorflow char-rnn tutorial: https://www.tensorflow.org/versions/r0.9/tutorials/seq2seq/index.html#recurrent-neural-networks

neuralstyle: https://github.com/anishathalye/neural-style

Page 52: machine learning and art hack day

–John Dewey

“Every great advance in science has issued from a new audacity of imagination.”

Jason [email protected]

I write here:http://jtoy.net http://somatic.io/bogmy models here: http://somatic.io

@jtoy

QUESTIONS?