Professional Documents
Culture Documents
©2018 Amazon Web Services, Inc. or its affiliates, All rights reserved
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Brief Intro to Deep Learning
Data
Machine
Traditional
Answers
Rules Rules
Answers
Learning
Programming Deep
Learning
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Brief Intro to Deep Learning – Artificial Neurons
𝑦 =𝜑 ¿
x1 w1
x2 w2 Σ φ 𝑦
…
xn wn
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Brief Intro to Deep Learning – Neural Networks
• Non linear
More…
Many
• Hierarchical
feature learning
• Scalable architecture
• Computationally
intensive Input Hidden Output
Layer Layers Layer
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Training Neural Networks
Neural
Forward Pass Input Data
Network
Inference
Update Back
Backwards Pass Weights Propagate
Loss
Autonomous
Personalization Logistics Voice
Vehicles
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Deep Learning is a Big Deal
It’s able to do better than humans (and ML)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Facial Emotion Recognition
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Misconception - AI First Strategy
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Problem Statement
XYZ bank wants to improve the customer experience rating. They recognize
bank customer care representative is one of the main factor to improve the
experience for customers visiting the bank branch offices. XYZ bank decides
to analyze the emotion {Happy, Stressed, Tired …} of its customer facing
employees in different settings {Time of the day, location, before and after
event …} and strategize on –
Happy employees, happy customers!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Stage 1 - Problem Formulation
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Stage 2 – Do I need to build my model?
Transf
er
• Extend the pre-trained model – Transfer Learning, Fine Tuning?
Learni
ng /
Fine
Tuning
Build
• Build and Train the model for your problem.
the
Model
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SOTA – FER+
For this talk, let us implement the FER+ in Apache MXNet GLUON
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Apache MXNet - Background
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Apache MXNet - Highlights
• Imperative, Symbolic and Dynamic APIs
Ease of Use • APIs in Python, Scala, C, C++, R (and more)
• Examples and tutorials
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Model Training Lab
https://github.com/TalkAI/facial-emotion-recognition-gluon
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
So what does a deployed model looks like?
Model
Mobile
IoT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Performance
Availability
Networking
The Undifferentiated
Monitoring
Heavy Lifting of
Model Serving Model Decoupling
Model Server for
Cross Framework
MXNet
Cross Platform
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
MXNet Model Server
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Model Archive
Trained
Network
Auxiliary
Assets
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Back
Serving Our Model
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Containerization
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Back
Containerization
Balancer
Load
MXNet NGINX
MMS Container Pull or Build
MMS
MMSContainer
Container Run MMS
Docker
Container Cluster Image
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Deploying Models with Containers
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Demo - http://bit.ly/mxnet-fer
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Apache MXNet Resources
• http://mxnet.incubator.apache.org/
• Learn Deep Learning with Gluon - https://gluon.mxnet.io/
• GitHub Repo - https://github.com/apache/incubator-mxnet
• Medium: https://medium.com/apache-mxnet
• Twitter: @ApacheMXNet
• Wiki: https://cwiki.apache.org/confluence/display/MXNET
• Subscribe to dev list – dev@mxnet.incubator.apache.org
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Apache MXNet Evaluation