Cage Against the Machine

Epic Machine Learning

Gant Laborde

.com

AKA

AKA

@GantLaborde

infinite.red

Enjoy Learning React and React Native

academy.infinite.red

https://inspirobot.me/

Machine
Learning

Why ML?

?

The Promised Land

"write once, use anywhere."

React Native

"learn once, write anywhere."

Machine Learning

"write once, train anywhere."

No need to re-write

  • Compact
  • Fast
  • Generalizable

THE POWER!!!

You can do it all

We're in a new revolution with Machine Learning

Machine
Learning

What does it do?

DeOldify Photos

Fraudulent Transactions

Recommendations

Best Price!?

Playing Games

Translate

Drive

Look for Parking

Flag Errors

Write Music

AND MORE

Machine
Learning

How can I use it?

Create never before

Style Transfers

Machine
Learning

What should it do?

What is it

?

Neuron

Traditional Coding

A Trained Model

  • is Fast
  • is Small(ish)
  • Generalizes

A Trained Model

What About Images?

Image Inputs

AND MOBILE

ML and Mobile

Quick and Dirty ML

Just use services

Amazon

Microsoft

Google

and many more...

React Native + Machine Learning

Tensorflow.JS

?

BrainJS

DEMO TIME

TensorFlow Lite

TensorFlow

React Native + ML Models

  • Swift Landmines

  • Xcode Madness

  • Mojave and iOS Betas

Not Alone!

Let's Get Cray!

Seefood Founder

Over 5GB of Data

Trained an 80MB Model

Let's do some

react-native-vision

!

#FML

About this Presentation

AKA Why my Girlfriend

thinks I'm crazy

How does one create a Nic or Not model?

Steps to get Data

  • Scrape the internet for pictures of Nic Cage

  • Scrape the internet for pictures of Celebs

  • Code to remove faces of all images (​faceOff)

  • Manually check your data for errors

Code for above available

https://github.com/gantman/nicornot

Nic or Nickel Back?

5+ Hours!?

OF THIS!?!?!?!?!

17KB File Result!?

👎

CoreML Training Playground

How-to Machine Learning

Training a Model

NVIDIA DIGITS

Oh No!

Add a great face CNN

500k images trained

WOAH!  Looking good!

Quantize the Model Weights

227MB -> 114MB

More Links

Also, I did it wrong

Try it yourself!

.com

Learn face-api.js

Thanks

Infinite Red

Thanks

ByteConf!!!

Thanks

Robert!

Thanks

Ray!

Thanks

Nic Cage

Thanks

@GantLaborde

GantLaborde.com

Cage Against the Machine

By Gant Laborde

Cage Against the Machine

Machine Learning is a buzzword because big companies love it. Big companies love it because it's insanely cool. Join me as we cover the breath-taking aspects of Machine Learning (ML) and dive deep into how it's currently showing up in mobile; especially React Native. We'll touch the tip of the iceberg and spark ML creativity for everyone!

  • 2,498