$30 off During Our Annual Pro Sale. View Details »

Machine learning & JavaScript, no you're not dreaming

Yas
August 03, 2019

Machine learning & JavaScript, no you're not dreaming

Yas

August 03, 2019
Tweet

More Decks by Yas

Other Decks in Programming

Transcript

  1. ML & JS
    No you’re not dreaming

    View Slide

  2. ML & JS
    No you’re not dreaming

    View Slide

  3. @yashints

    View Slide

  4. View Slide

  5. @yashints
    Or is it?

    View Slide

  6. @yashints

    View Slide

  7. Lead consultant @Readify
    Meet Yaser
    @yashints
    yashints.dev

    View Slide

  8. Why do it in browser?
    Wide distribution
    Interactive
    Sensors
    Data stays on the client

    View Slide

  9. @yashints
    https://playground.tensorflow.org

    View Slide

  10. @yashints
    Tensorflow.js

    View Slide

  11. @yashints
    Allows inference and
    training entirely in the
    browser or Node.js
    Released March 2018 GPU-accelerated via
    WebGL
    TensorFlow.js

    View Slide

  12. @yashints
    Empower a diverse group of developers
    Enable ML peeps to port their work to web

    View Slide

  13. @yashints
    Build your own
    Run existing
    models
    Retrain
    with transfer learning

    View Slide

  14. @yashints
    TF TPU
    TF GPU
    Core API
    WebGL
    Layers API
    Model
    Browser Node.js
    TF CPU
    Keras Model
    Tensorflow
    Saved models

    View Slide

  15. @yashints
    Pre-trained models
    https://github.com/tensorflow/tfjs-models
    • MobileNet Object detection
    • PoseNet Human pose detection
    • CocoSSD Object localisation
    • BodyPix Human segmentation
    • USE Text classification

    View Slide

  16. @yashints
    Browser examples

    View Slide

  17. @yashints
    BodyPix
    demo

    View Slide

  18. @yashints

    View Slide

  19. @yashints
    Creatability
    yas.fyi/2Zl4N2p

    View Slide

  20. @yashints
    Airbnb

    View Slide

  21. @yashints
    Speech command

    View Slide

  22. @yashints
    Node.js & Desktop

    View Slide

  23. @yashints
    yas.fyi/2GBJF0s
    Doctor Clinic

    View Slide

  24. @yashints
    yas.fyi/2LUfBkX
    Magenta Studio

    View Slide

  25. @yashints
    Retraining in Node.js

    View Slide

  26. @yashints
    Retraining in Node.js

    View Slide

  27. @yashints
    Demo

    View Slide

  28. @yashints
    “A year spent in artificial
    intelligence is enough to make one
    believe in God.”

    Alan Perlis

    View Slide

  29. @yashints
    References
    https://www.tensorflow.org/js
    https://github.com/tensorflow/tfjs-examples
    https://www.freecodecamp.org/news/tensorflowjs-full-course/
    https://codelabs.developers.google.com/
    https://yashints.dev/blog/2018/11/27/get-started-with-tensorflowjs

    View Slide

  30. Reach out
    Thanks!
    @yashints
    yashints.dev

    View Slide