SlideShare uma empresa Scribd logo
1 de 36
Baixar para ler offline
S U M M I T
SA NTA CLA R A
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Get hands on with AWS DeepRacer & compete in
the AWS DeepRacer League
DeClercq Wentzel
Senior Product Manager
Amazon Web Services
A I M 2 0 3
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Agenda
• AWS DeepRacer origin
• RL for the Sunday driver
• Virtual simulator
• Under the hood
• Rubber meets the road
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
How can we put
reinforcement learning
in the hands of all
developers? literally
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
1/18 scale autonomous
race car
AWS DeepRacer: An exciting way for developers to get hands-on experience with
reinforcement learning
Global Racing LeagueVirtual simulator, to train
and evaluate
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
© 2019, Amazon WebServices, Inc. or its affiliates. All rights reserved.S UM M I T
Reinforcement learning in the broader AI context
Reinforcement
Learning
Supervised
Learning
Unsupervised
Learning
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Machine learning overview
SUPERVISED UNSUPERVISED REINFORCEMENT
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Reinforcement learning in the real world
Reward positive
behavior
Don’t reward
negative behavior The result!
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Reinforcement learning terms
AGENT ENVIRONMENT STATE
ACTION
EPISODEREWARD
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
The reward function
The reward function incentivizes particular
behaviors and is at the core of reinforcement
learning
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
The reward function in a race grid
S G = 2
GOALAGENT
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Incentivizing centerline behavior
0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1
S 2 2 2 2 2 2 G = 2
0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1
8.6 9.5 8.5 7.5 6.3 5.0 3.5 1.9
S 10.4 9.4 8.2 6.9 5.4 3.8 G = 2
8.6 9.5 8.5 7.5 6.3 5.0 3.5 1.9
Discount per step
0.9
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
AWS DeepRacer problem formulation
STATE
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
How does learning happen? VALUE FUNCTION
POLICY FUNCTION
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
RL algorithms: Vanilla policy gradient
* Image Source: Landscape image is CC0 1.0 public domain
Datais only used once
• High variance of rewards
• Magnitude of update could be too large
J()New
weights
New
weights
0.4 ± 𝛿 0.3 ± 𝛿
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
RL algorithms: Proximal policy optimization (PPO)
(State, action, reward,
next state)
(st,at, rt, st+1)
Advantage
Improved model
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
METHOD Supervised learning
HOW IT WORKS Expert driver controls a real world
car, that has a camera. Save the images from the
camera as inputs and corresponding driving actions
(speed and steering angle) as outputs. Train a
model.
RESULT Provide state(image)into model and
receive driving action
RL vs. other approaches for robotic racing
METHOD Reinforcementlearning
HOW IT WORKS Virtual agent repeatedly interacts
with a simulated environment and logs
experience (image, action, new state, reward).
Experience is used to train a model, and new
model is used to get more experience.
RESULT Provide state(image)into model and
receive driving action
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
AWS Cloud
AWS
DeepRacer
NATgateway
VPC
AWS DeepRacer
Models
Simulation
video
Metrics
AWS DeepRacer simulator architecture
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
AWS DeepRacer console diagram
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Programming your own reward function
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Track components
TRACK CENTER
TRACK WALL
TRACK SURFACE aka ON-TRACK
FIELD aka OFF-TRACK
TRACK BOUNDARIES
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Coordinate system and track waypoints
OUTER BOUNDARY WAYPOINTS
TRACK CENTER WAYPOINTS
INNER BOUNDARY WAYPOINTS
X
Y
TRACK WIDTH
CAR DIRECTION
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Hyper parameters control the training algorithm
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Action space
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Lab 1 – AWS DeepRacer service
OBJECTIVE Build your first AWS DeepRacer RL model
TIME 50 min.
1. Find the lab content here:
https://github.com/aws-samples/aws-deepracer-workshops/
2. Navigate to: Workshops/2019-AWSSummits-AWSDeepRacerService/Lab1
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
AWS DeepRacer car specifications
CAR 18th scale 4WD with monster truck chassis
CPU Intel AtomProcessor
MEMORY 4 GB RAM
STORAGE 32 GB (expandable)
WI-FI 802.11ac
CAMERA 4 MP camera with MJPEG
DRIVE BATTERY 1000 mAh lithium polymer
COMPUTE BATTERY 13600 mAh USB-C
SENSORS Integrated accelerometer and gyroscope
PORTS 4x USB-A, 1x USB-C, 1x Micro-USB, 1x HDMI
SOFTWARE Ubuntu OS 16.04.3 LTS, Intel OpenVINO
toolkit,ROS Kinetic
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
ROS msg node
Stored file
ROS nodes
Web
Server
Publisher
Model
Optimizer
VideoM-
JPEG
WebServer
Video
Inference
Results
Autonomous
Drive
Control
Node
Optimized
Model
Mediaengine
Camera
Model
Inference
engine
Manual
Drive
Navigation
Node
Servo& Motor
AWS DeepRacer software architecture
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Simulation-to-real domain transfer
SIM-to-REAL CHALLENGE
Train model using simulated images, but the
race car using the images the car experiences
in the real world
STRATEGIES
Environment control
Domain randomization
Modularity and abstraction
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T
Race for prizes and glory in the AWS DeepRacer League
Train your AWS DeepRacer model and compete:
• Online in the Virtual Circuit
• In person in the Summit Circuit (visit the Expo Hall)
www.deepracerleague.com
Thank you!
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Favorire l'innovazione passando da applicazioni monolitiche ad architetture m...
Favorire l'innovazione passando da applicazioni monolitiche ad architetture m...Favorire l'innovazione passando da applicazioni monolitiche ad architetture m...
Favorire l'innovazione passando da applicazioni monolitiche ad architetture m...
 
Get hands-on with AWS DeepRacer and compete in the AWS DeepRacer League - AIM...
Get hands-on with AWS DeepRacer and compete in the AWS DeepRacer League - AIM...Get hands-on with AWS DeepRacer and compete in the AWS DeepRacer League - AIM...
Get hands-on with AWS DeepRacer and compete in the AWS DeepRacer League - AIM...
 
Developing intelligent robots with AWS RoboMaker - SVC207 - Atlanta AWS Summit
Developing intelligent robots with AWS RoboMaker - SVC207 - Atlanta AWS SummitDeveloping intelligent robots with AWS RoboMaker - SVC207 - Atlanta AWS Summit
Developing intelligent robots with AWS RoboMaker - SVC207 - Atlanta AWS Summit
 
Add intelligence to applications with AWS AI services - AIM201 - New York AWS...
Add intelligence to applications with AWS AI services - AIM201 - New York AWS...Add intelligence to applications with AWS AI services - AIM201 - New York AWS...
Add intelligence to applications with AWS AI services - AIM201 - New York AWS...
 
Get hands-on with AWS DeepRacer and compete in the AWS DeepRacer League - AIM...
Get hands-on with AWS DeepRacer and compete in the AWS DeepRacer League - AIM...Get hands-on with AWS DeepRacer and compete in the AWS DeepRacer League - AIM...
Get hands-on with AWS DeepRacer and compete in the AWS DeepRacer League - AIM...
 
Amazon SageMaker Deep Dive - Meetup AWS Toulouse at D2SI
Amazon SageMaker Deep Dive - Meetup AWS Toulouse at D2SIAmazon SageMaker Deep Dive - Meetup AWS Toulouse at D2SI
Amazon SageMaker Deep Dive - Meetup AWS Toulouse at D2SI
 
Pro-Tips-for-Builders-on-AWS
Pro-Tips-for-Builders-on-AWSPro-Tips-for-Builders-on-AWS
Pro-Tips-for-Builders-on-AWS
 
The Zen of governance - Establish guardrails and empower builders - SVC201 - ...
The Zen of governance - Establish guardrails and empower builders - SVC201 - ...The Zen of governance - Establish guardrails and empower builders - SVC201 - ...
The Zen of governance - Establish guardrails and empower builders - SVC201 - ...
 
Build accurate training datasets with Amazon SageMaker Ground Truth - AIM301 ...
Build accurate training datasets with Amazon SageMaker Ground Truth - AIM301 ...Build accurate training datasets with Amazon SageMaker Ground Truth - AIM301 ...
Build accurate training datasets with Amazon SageMaker Ground Truth - AIM301 ...
 
Build AR/VR apps with AWS - SVC202 - Atlanta AWS Summit
Build AR/VR apps with AWS - SVC202 - Atlanta AWS SummitBuild AR/VR apps with AWS - SVC202 - Atlanta AWS Summit
Build AR/VR apps with AWS - SVC202 - Atlanta AWS Summit
 
Migration to AWS: The foundation for enterprise transformation - SVC210 - New...
Migration to AWS: The foundation for enterprise transformation - SVC210 - New...Migration to AWS: The foundation for enterprise transformation - SVC210 - New...
Migration to AWS: The foundation for enterprise transformation - SVC210 - New...
 
[REPEAT] Optimize your workloads with Amazon EC2 & AMD EPYC - DEM01-R - Santa...
[REPEAT] Optimize your workloads with Amazon EC2 & AMD EPYC - DEM01-R - Santa...[REPEAT] Optimize your workloads with Amazon EC2 & AMD EPYC - DEM01-R - Santa...
[REPEAT] Optimize your workloads with Amazon EC2 & AMD EPYC - DEM01-R - Santa...
 
Build sophisticated forecasting & recommendation models - AIM204 - Santa Clar...
Build sophisticated forecasting & recommendation models - AIM204 - Santa Clar...Build sophisticated forecasting & recommendation models - AIM204 - Santa Clar...
Build sophisticated forecasting & recommendation models - AIM204 - Santa Clar...
 
Automating document analysis and text extraction with Amazon Textract - AIM20...
Automating document analysis and text extraction with Amazon Textract - AIM20...Automating document analysis and text extraction with Amazon Textract - AIM20...
Automating document analysis and text extraction with Amazon Textract - AIM20...
 
How to truly delegate within an account with permission boundaries - SEC301 -...
How to truly delegate within an account with permission boundaries - SEC301 -...How to truly delegate within an account with permission boundaries - SEC301 -...
How to truly delegate within an account with permission boundaries - SEC301 -...
 
Building AR/VR Apps with AWS - SVC201 - Anaheim AWS Summit
Building AR/VR Apps with AWS - SVC201 - Anaheim AWS SummitBuilding AR/VR Apps with AWS - SVC201 - Anaheim AWS Summit
Building AR/VR Apps with AWS - SVC201 - Anaheim AWS Summit
 
Amazon SageMaker sviluppa, addestra e distribuisci modelli di Machine Learnin...
Amazon SageMaker sviluppa, addestra e distribuisci modelli di Machine Learnin...Amazon SageMaker sviluppa, addestra e distribuisci modelli di Machine Learnin...
Amazon SageMaker sviluppa, addestra e distribuisci modelli di Machine Learnin...
 
Introduction to EC2 A1 instances, powered by the AWS Graviton processor - CMP...
Introduction to EC2 A1 instances, powered by the AWS Graviton processor - CMP...Introduction to EC2 A1 instances, powered by the AWS Graviton processor - CMP...
Introduction to EC2 A1 instances, powered by the AWS Graviton processor - CMP...
 
Developing intelligent robots with AWS RoboMaker - SVC207 - Santa Clara AWS S...
Developing intelligent robots with AWS RoboMaker - SVC207 - Santa Clara AWS S...Developing intelligent robots with AWS RoboMaker - SVC207 - Santa Clara AWS S...
Developing intelligent robots with AWS RoboMaker - SVC207 - Santa Clara AWS S...
 
Next generation intelligent data lakes, powered by GraphQL & AWS AppSync - MA...
Next generation intelligent data lakes, powered by GraphQL & AWS AppSync - MA...Next generation intelligent data lakes, powered by GraphQL & AWS AppSync - MA...
Next generation intelligent data lakes, powered by GraphQL & AWS AppSync - MA...
 

Semelhante a [REPEAT] Get hands on with AWS DeepRacer & compete in the AWS DeepRacer League - AIM203-R - Santa Clara AWS Summit.pdf

Semelhante a [REPEAT] Get hands on with AWS DeepRacer & compete in the AWS DeepRacer League - AIM203-R - Santa Clara AWS Summit.pdf (20)

DeepRacer-Workshop-HongKong-Donnie-Prakoso
DeepRacer-Workshop-HongKong-Donnie-PrakosoDeepRacer-Workshop-HongKong-Donnie-Prakoso
DeepRacer-Workshop-HongKong-Donnie-Prakoso
 
AWS-DeepRacer-Workshop-HK-Donnie-Prakoso
AWS-DeepRacer-Workshop-HK-Donnie-PrakosoAWS-DeepRacer-Workshop-HK-Donnie-Prakoso
AWS-DeepRacer-Workshop-HK-Donnie-Prakoso
 
Get hands on with AWS DeepRacer & compete in the AWS DeepRacer League - AIM20...
Get hands on with AWS DeepRacer & compete in the AWS DeepRacer League - AIM20...Get hands on with AWS DeepRacer & compete in the AWS DeepRacer League - AIM20...
Get hands on with AWS DeepRacer & compete in the AWS DeepRacer League - AIM20...
 
Reinforcement Learning with Sagemaker, DeepRacer and Robomaker
Reinforcement Learning with Sagemaker, DeepRacer and RobomakerReinforcement Learning with Sagemaker, DeepRacer and Robomaker
Reinforcement Learning with Sagemaker, DeepRacer and Robomaker
 
Racing with Artificial Intelligence
Racing with Artificial IntelligenceRacing with Artificial Intelligence
Racing with Artificial Intelligence
 
Optimize deep learning training and inferencing using GPU and Amazon SageMake...
Optimize deep learning training and inferencing using GPU and Amazon SageMake...Optimize deep learning training and inferencing using GPU and Amazon SageMake...
Optimize deep learning training and inferencing using GPU and Amazon SageMake...
 
[NEW LAUNCH] Introducing AWS Deep Learning Containers
[NEW LAUNCH] Introducing AWS Deep Learning Containers[NEW LAUNCH] Introducing AWS Deep Learning Containers
[NEW LAUNCH] Introducing AWS Deep Learning Containers
 
Running Lean Performant Yet Cost Optimised - AWS Summit Sydney
Running Lean Performant Yet Cost Optimised - AWS Summit SydneyRunning Lean Performant Yet Cost Optimised - AWS Summit Sydney
Running Lean Performant Yet Cost Optimised - AWS Summit Sydney
 
Machine Learning at the Edge
Machine Learning at the EdgeMachine Learning at the Edge
Machine Learning at the Edge
 
Build, train and deploy Machine Learning models on Amazon SageMaker (May 2019)
Build, train and deploy Machine Learning models on Amazon SageMaker (May 2019)Build, train and deploy Machine Learning models on Amazon SageMaker (May 2019)
Build, train and deploy Machine Learning models on Amazon SageMaker (May 2019)
 
Build, train and deploy machine learning models at scale using AWS
Build, train and deploy machine learning models at scale using AWSBuild, train and deploy machine learning models at scale using AWS
Build, train and deploy machine learning models at scale using AWS
 
Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018
Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018
Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018
 
ML for every developer and data scientist with Amazon SageMaker - AIM201 - At...
ML for every developer and data scientist with Amazon SageMaker - AIM201 - At...ML for every developer and data scientist with Amazon SageMaker - AIM201 - At...
ML for every developer and data scientist with Amazon SageMaker - AIM201 - At...
 
[NEW LAUNCH!] [REPEAT 1] AWS DeepRacer Workshops –a new, fun way to learn rei...
[NEW LAUNCH!] [REPEAT 1] AWS DeepRacer Workshops –a new, fun way to learn rei...[NEW LAUNCH!] [REPEAT 1] AWS DeepRacer Workshops –a new, fun way to learn rei...
[NEW LAUNCH!] [REPEAT 1] AWS DeepRacer Workshops –a new, fun way to learn rei...
 
Get started with Machine Learning and Computer Vision Using AWS DeepLens (Feb...
Get started with Machine Learning and Computer Vision Using AWS DeepLens (Feb...Get started with Machine Learning and Computer Vision Using AWS DeepLens (Feb...
Get started with Machine Learning and Computer Vision Using AWS DeepLens (Feb...
 
AWS re:Invent 2018 - AIM302 - Machine Learning at the Edge
AWS re:Invent 2018 - AIM302  - Machine Learning at the Edge AWS re:Invent 2018 - AIM302  - Machine Learning at the Edge
AWS re:Invent 2018 - AIM302 - Machine Learning at the Edge
 
SageMaker로 강화학습(RL) 마스터링 :: 남궁선 - AWS Community Day 2019
SageMaker로 강화학습(RL) 마스터링 :: 남궁선 - AWS Community Day 2019SageMaker로 강화학습(RL) 마스터링 :: 남궁선 - AWS Community Day 2019
SageMaker로 강화학습(RL) 마스터링 :: 남궁선 - AWS Community Day 2019
 
The Steady State Reduce Spikiness from GPU Utilization with Apache MXNet (inc...
The Steady State Reduce Spikiness from GPU Utilization with Apache MXNet (inc...The Steady State Reduce Spikiness from GPU Utilization with Apache MXNet (inc...
The Steady State Reduce Spikiness from GPU Utilization with Apache MXNet (inc...
 
[NEW LAUNCH!] Introducing AWS DeepRacer (AIM367) - AWS re:Invent 2018
[NEW LAUNCH!] Introducing AWS DeepRacer  (AIM367) - AWS re:Invent 2018[NEW LAUNCH!] Introducing AWS DeepRacer  (AIM367) - AWS re:Invent 2018
[NEW LAUNCH!] Introducing AWS DeepRacer (AIM367) - AWS re:Invent 2018
 
Machine learning for developers & data scientists with Amazon SageMaker - AIM...
Machine learning for developers & data scientists with Amazon SageMaker - AIM...Machine learning for developers & data scientists with Amazon SageMaker - AIM...
Machine learning for developers & data scientists with Amazon SageMaker - AIM...
 

Mais de Amazon Web Services

Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 

Mais de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

[REPEAT] Get hands on with AWS DeepRacer & compete in the AWS DeepRacer League - AIM203-R - Santa Clara AWS Summit.pdf

  • 1. S U M M I T SA NTA CLA R A
  • 2. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Get hands on with AWS DeepRacer & compete in the AWS DeepRacer League DeClercq Wentzel Senior Product Manager Amazon Web Services A I M 2 0 3
  • 3. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Agenda • AWS DeepRacer origin • RL for the Sunday driver • Virtual simulator • Under the hood • Rubber meets the road
  • 4. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 5. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T How can we put reinforcement learning in the hands of all developers? literally
  • 6. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T 1/18 scale autonomous race car AWS DeepRacer: An exciting way for developers to get hands-on experience with reinforcement learning Global Racing LeagueVirtual simulator, to train and evaluate
  • 7. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 8. © 2019, Amazon WebServices, Inc. or its affiliates. All rights reserved.S UM M I T Reinforcement learning in the broader AI context Reinforcement Learning Supervised Learning Unsupervised Learning
  • 9. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Machine learning overview SUPERVISED UNSUPERVISED REINFORCEMENT
  • 10. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Reinforcement learning in the real world Reward positive behavior Don’t reward negative behavior The result!
  • 11. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Reinforcement learning terms AGENT ENVIRONMENT STATE ACTION EPISODEREWARD
  • 12. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T The reward function The reward function incentivizes particular behaviors and is at the core of reinforcement learning
  • 13. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T The reward function in a race grid S G = 2 GOALAGENT
  • 14. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Incentivizing centerline behavior 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 S 2 2 2 2 2 2 G = 2 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 8.6 9.5 8.5 7.5 6.3 5.0 3.5 1.9 S 10.4 9.4 8.2 6.9 5.4 3.8 G = 2 8.6 9.5 8.5 7.5 6.3 5.0 3.5 1.9 Discount per step 0.9
  • 15. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T AWS DeepRacer problem formulation STATE
  • 16. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T How does learning happen? VALUE FUNCTION POLICY FUNCTION
  • 17. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T RL algorithms: Vanilla policy gradient * Image Source: Landscape image is CC0 1.0 public domain Datais only used once • High variance of rewards • Magnitude of update could be too large J()New weights New weights 0.4 ± 𝛿 0.3 ± 𝛿
  • 18. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T RL algorithms: Proximal policy optimization (PPO) (State, action, reward, next state) (st,at, rt, st+1) Advantage Improved model
  • 19. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T METHOD Supervised learning HOW IT WORKS Expert driver controls a real world car, that has a camera. Save the images from the camera as inputs and corresponding driving actions (speed and steering angle) as outputs. Train a model. RESULT Provide state(image)into model and receive driving action RL vs. other approaches for robotic racing METHOD Reinforcementlearning HOW IT WORKS Virtual agent repeatedly interacts with a simulated environment and logs experience (image, action, new state, reward). Experience is used to train a model, and new model is used to get more experience. RESULT Provide state(image)into model and receive driving action
  • 20. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 21. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T AWS Cloud AWS DeepRacer NATgateway VPC AWS DeepRacer Models Simulation video Metrics AWS DeepRacer simulator architecture
  • 22. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T AWS DeepRacer console diagram
  • 23. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Programming your own reward function
  • 24. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Track components TRACK CENTER TRACK WALL TRACK SURFACE aka ON-TRACK FIELD aka OFF-TRACK TRACK BOUNDARIES
  • 25. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Coordinate system and track waypoints OUTER BOUNDARY WAYPOINTS TRACK CENTER WAYPOINTS INNER BOUNDARY WAYPOINTS X Y TRACK WIDTH CAR DIRECTION
  • 26. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Hyper parameters control the training algorithm
  • 27. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Action space
  • 28. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Lab 1 – AWS DeepRacer service OBJECTIVE Build your first AWS DeepRacer RL model TIME 50 min. 1. Find the lab content here: https://github.com/aws-samples/aws-deepracer-workshops/ 2. Navigate to: Workshops/2019-AWSSummits-AWSDeepRacerService/Lab1
  • 29. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 30. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T AWS DeepRacer car specifications CAR 18th scale 4WD with monster truck chassis CPU Intel AtomProcessor MEMORY 4 GB RAM STORAGE 32 GB (expandable) WI-FI 802.11ac CAMERA 4 MP camera with MJPEG DRIVE BATTERY 1000 mAh lithium polymer COMPUTE BATTERY 13600 mAh USB-C SENSORS Integrated accelerometer and gyroscope PORTS 4x USB-A, 1x USB-C, 1x Micro-USB, 1x HDMI SOFTWARE Ubuntu OS 16.04.3 LTS, Intel OpenVINO toolkit,ROS Kinetic
  • 31. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T ROS msg node Stored file ROS nodes Web Server Publisher Model Optimizer VideoM- JPEG WebServer Video Inference Results Autonomous Drive Control Node Optimized Model Mediaengine Camera Model Inference engine Manual Drive Navigation Node Servo& Motor AWS DeepRacer software architecture
  • 32. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Simulation-to-real domain transfer SIM-to-REAL CHALLENGE Train model using simulated images, but the race car using the images the car experiences in the real world STRATEGIES Environment control Domain randomization Modularity and abstraction
  • 33. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 34. © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.S UM M I T Race for prizes and glory in the AWS DeepRacer League Train your AWS DeepRacer model and compete: • Online in the Virtual Circuit • In person in the Summit Circuit (visit the Expo Hall) www.deepracerleague.com
  • 35. Thank you! S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.
  • 36. S UM M I T © 2019, Amazon Web Services, Inc. orits affiliates. All rights reserved.