Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CoreML Hands On

CoreML Hands On

An introduction to what is possible when adding machine learning models to an iOS app via CoreML. Includes example CoreML models available today, some fanciful ideas for tomorrow, and our exploration of teaching an iPhone to play pinball in the real world.

Quinn McHenry

January 25, 2018
Tweet

More Decks by Quinn McHenry

Other Decks in Programming

Transcript

  1. CoreML Hands On What will our robot overlords be really

    good at? ⇢or⇠ What is machine learning?
  2. CoreML developer.apple.com/documentation/coreml • Command line tools • coremltools • coremlc

    • Capabilities • Dynamic model download • Vision framework integration • Metal performance shaders integration
  3. Sensory Information Sight Sound % Smell Taste Touch Temperature )

    Kinesthetic Movement Pain ⏲ Time Echolocation ⚡ Electric Magnetic Infrared Location
  4. Sensory Information Sight Sound % Smell Taste Touch Temperature )

    Kinesthetic Movement Pain ⏲ Time Echolocation ⚡ Electric Magnetic Infrared Location 2Human
  5. Sensory Information Sight Sound % Smell Taste Touch Temperature )

    Kinesthetic Movement Pain ⏲ Time Echolocation ⚡ Electric Magnetic Infrared Location iPhone
  6. Image Classification • Classify >1000 things • Can locate items

    in scene • Requires lots of tagged images • Supervised learning github.com/hanleyweng/CoreML-in-ARKit + Inception v3
  7. Image Classification • CarRecognition dataset • 163 makes • 1,716

    models • 136,726 images mmlab.ie.cuhk.edu.hk/datasets/comp_cars
  8. Sound Classification • air conditioner • car horn • children

    playing • dog bark • drilling • engine idling • gunshot • jackhammer • siren • street music serv.cusp.nyu.edu/projects/urbansounddataset/ Urban Sounds
  9. Demographic Classification ncbi.nlm.nih.gov/pmc/articles/PMC4721824/ One Small Step for a Man: Estimation

    of Gender, Age and Height from Recordings of One Step by a Single Inertial Sensor
  10. Decide Which… • Word you might type next • Ad

    you’ll most likely click • Tweets you’ll ❤ • Netflix series you’ll binge • Shoes best go with those pants • Diagnosis is correct • Cryptocurrency will • Driving path is fastest • Elevator to summon
  11. Decide Which… • Word you might type next • Ad

    you’ll most likely click • Tweets you’ll ❤ • Netflix series you’ll binge • Shoes best go with those pants • Diagnosis is correct • Cryptocurrency will • Driving path is fastest • Elevator to summon • Flipper to flip
  12. smallplanet.pinball github.com/SmallPlanetiOS/smallplanet_Pinball • Interface with hardware • Build structures to

    hold devices • Read scores from machine • Solder transistors • Manage lighting/photography • Master physical debugging • Network multiple devices