create account

AWS DeepRacer Console is live! Time to train. by codelikeamother

View this thread on: hive.blogpeakd.comecency.com
· @codelikeamother ·
$35.51
AWS DeepRacer Console is live! Time to train.
A lot happened Since I wrote the recent post. The most important aspect is the general availability of an AWS DeepRacer Console. This has very significant influence on my plans.

![Screenshot from 2019-04-30 22-15-59.png](https://cdn.steemitimages.com/DQmaY5FjJAEYmg29GHdtZXrQQdCRNMdb7PgX26X5H3XTiy1/Screenshot%20from%202019-04-30%2022-15-59.png)

AWS DeepRacer Console is an Amazon Web Services service consolidating other services. First of all it uses SageMaker RL which is an AWS reinforcement learning solution. Then it uses AWS RoboMaker which allows simulating a physical environment for developing physical machines. Those two services (and a couple more) are integrated together into a single page where user can provide a reward function, select a track to train against, has a chance to update a couple parameters in the reinforcement learning algorithm, pushes a button and can watch streamed visualization of the learning attempt. I don't think it can get any more hands-on than that.

If you managed to plow through to the end of my post, you knew that I planned to learn how to set up the training without the Console. I regretted deeply no access to it but then expected it to become generally available after the summits since it wasn't out there before. Amazon did provide a set of instructions to set up the training of the model but I initially failed to do that one way, the other one seemed rather slow to learn and I did not understand what was happening. I wanted to do it right, first learn and then understand.

Now things have changed.

With seven days left to the summit I will focus my efforts on learning to train and training a model.

I already completed watching the free [AWS DeepRacer training](https://www.aws.training/learningobject/wbc?id=32143) which I really recommend as it explains everything I wrote about last time in a much better way and even more. The pace is not to fast, the way lessons are being presented in a non-overwhelming way. You need an Amazon store account to access the training.

To do the exercises  you will need an AWS account which you can get  [here](https://signin.aws.amazon.com). The Free Tier account provides enough resources to learn many things that AWS offers. Just remember that some of them cost money and it's better to clean up after work to not get into some big bills. Within the first month of a Free Tier account there is roughly 10 hours of free SageMaker training, later it costs money. One thing I do value about Amazon is that they are quite open about what costs you are being exposed to, for instance: [DeepRacer Pricing](https://aws.amazon.com/deepracer/pricing/), that said it's good to monitor Billing so that the bill doesn't surprise you. And clean up after yourself.

The whole thing sounds scarier than it really is when you actually try, so I really recommend checking it out.

*If you would like to learn more about AWS and their services, there's a number of courses available. I did the [CloudGuru AWS Certified Developer - Associate](https://www.udemy.com/aws-certified-developer-associate/) and it was OK. Just enough for me to not fear AWS before the conference and hands-on workshops Again, it costs money, But every now and then a large discount of about 90% is offered. Just to be clear: this is not the only course and there might be better ones out there. I paid for this one and found it useful*

# DeepRacer Console
![Screenshot from 2019-04-30 23-09-11.png](https://cdn.steemitimages.com/DQmUN5t1iACCsWNHrgR2C9qdSPjZA86tLe4uP46vwJ2Err2/Screenshot%20from%202019-04-30%2023-09-11.png)

Once you visit the [AWS DeepRacer Console](https://console.aws.amazon.com/deepracer/home?region=us-east-1), you are presented with a short introduction, invitation to get started, to participate in the DeepRacer League.

At first you are presented with three sample models. While they are fun to evaluate, I don't recommend doing anything else with them. The key reason is action space - a set of behaviours that your model is allowed to present. The sample models have their behaviours rather slow therefore I recommend starting from scratch. You can have a look at their reward functions and reuse them.

My first model was built based on a combination of actions from basic and advanced reward function samples. After only two hours of training I got these results:

![Screenshot from 2019-04-30 23-32-42.png](https://cdn.steemitimages.com/DQmPjrQWqsao1PhWBPAML8CdtHBZCzpAfNWdCQezcvwDrE9/Screenshot%20from%202019-04-30%2023-32-42.png)

One thing I've learned from the course is that I should not expect them to transfer directly into the outcomes on the track with a real device, but it IS fast to me.

There are six tracks to choose from when training a model:

![Screenshot from 2019-05-01 00-15-57.png](https://cdn.steemitimages.com/DQmVPZSofCo5Nsu2byBGfB7LFCqteiYFYqXyJ8c9Ag5xByq/Screenshot%20from%202019-05-01%2000-15-57.png)

I'm expecting more to come as new races are announced.

# DeepRacer League - virtual races

I've talked enough about the races during AWS Summits around the world. The winners of those races will be invited to AWS re:Invent 2019 to compete for the DeepRacer Cup. But that's not all: additional [virtual races have been started](https://aws.amazon.com/blogs/aws/the-aws-deepracer-league-virtual-circuit-is-now-open-train-your-model-today/) winners of which will also be invited to the finals.

![deepracer-logo.png](https://cdn.steemitimages.com/DQmNQKaWuqVMAPXppQWN7i8vJ1vFwfaBJVVppNDUh3t8S7M/deepracer-logo.png)

Once you have trained your model, you can submit it to the virtual race track. The trick is that the training and evaluation tracks differ slightly. For the re:Invent 2018 track your training and evaluation happen on the same track. This allows you to introduce optimizations that can overtrain a model to be able to nail this track only but not other. As a result you can complete that track in 8 seconds ([click to see a video on Twitter](https://twitter.com/sunilmallya/status/1118888183083651074)). 

When you train your model to have a perfect score on a straight line track, don't expect it to do well on a track with turns. That's why having a model that is trained to behave well in various circumstances can guarantee you a better result.

I have started the training process which will cost quite a bit, but I am hopeful to get some fun out of that. The next step I plan to take is to complete the [workshop on GitHub](https://github.com/aws-samples/aws-deepracer-workshops). I want to be prepared to take the most out of the Summit in terms of DeepRacer experience.

I have checked what the parameters provided in a reward function look like:
```
{
  'all_wheels_on_track': True,
  'x': 4,
  'y': 5,
  'distance_from_center': 0.3,
  'heading': 359.9,
  'progress': 50,
  'steps': 100,
  'speed': 1.0,
  'steering_angle': 6,
  'track_width': 0.2,
  'waypoints': [[ 2.5, 0.75], [3.33, 0.75], [4.17, 0.75], [5.0, 0.75], [5.83, 0.75], [6.67, 0.75], [7.5, 0.75], [8.33, 0.75], [9.17, 0.75], [9.75, 0.94], [10.0, 1.5], [10.0, 1.875], [9.92, 2.125], [9.58, 2.375], [9.17, 2.75], [8.33, 2.5], [7.5, 2.5], [7.08, 2.56], [6.67, 2.625], [5.83, 3.44], [5.0, 4.375], [4.67, 4.69], [4.33, 4.875], [4.0, 5.0], [3.33, 5.0], [2.5, 4.95], [2.08, 4.94], [1.67, 4.875], [1.33, 4.69], [0.92, 4.06], [1.17, 3.185], [1.5, 1.94], [1.6, 1.5], [1.83, 1.125], [2.17, 0.885 ]],
  'closest_waypoints': [3, 4],
  'is_left_of_center': True,
  'is_reversed': True
}
```

There is some wiggle room in terms of what we could optimize with such data, I'll be thinking about it this week.

# Summary

The two goals I'm hope to fulfill at the AWS Summit in London is meeting wonderful people and having fun. I'm pretty confident about the first one taken into account the folks I've met at the re:Invent.

![Peek 2019-05-01 01-03.gif](https://cdn.steemitimages.com/DQmaBedHoLahFtxyAQDUdStH3zXhtdrfnKYMx1jogx3diCn/Peek%202019-05-01%2001-03.gif)

So head to my previous post on [https://codelikeamother.uk](https://codelikeamother.uk/training-a-car-for-an-autonomous-race) or [Steemit](https://steemit.com/programming/@codelikeamother/training-a-car-for-an-autonomous-race) and watch the videos and follow the links. If you'd like to get in touch, leave a comment below.


***
<center><sup>Originally posted on [Code Like A Mother](https://codelikeamother.uk/aws-deepracer-console-is-live-time-to-train). Steem blog powered by [ENGRAVE](https://engrave.website).</sup></center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 83 others
properties (23)
authorcodelikeamother
permlinkaws-deepracer-console-is-live-time-to-train
categoryprogramming
json_metadata{"tags":["programming","steemiteducation","technology","aws","ai"],"image":["https://cdn.steemitimages.com/DQmaY5FjJAEYmg29GHdtZXrQQdCRNMdb7PgX26X5H3XTiy1/Screenshot%20from%202019-04-30%2022-15-59.png","https://cdn.steemitimages.com/DQmaY5FjJAEYmg29GHdtZXrQQdCRNMdb7PgX26X5H3XTiy1/Screenshot%20from%202019-04-30%2022-15-59.png","https://cdn.steemitimages.com/DQmUN5t1iACCsWNHrgR2C9qdSPjZA86tLe4uP46vwJ2Err2/Screenshot%20from%202019-04-30%2023-09-11.png","https://cdn.steemitimages.com/DQmPjrQWqsao1PhWBPAML8CdtHBZCzpAfNWdCQezcvwDrE9/Screenshot%20from%202019-04-30%2023-32-42.png","https://cdn.steemitimages.com/DQmVPZSofCo5Nsu2byBGfB7LFCqteiYFYqXyJ8c9Ag5xByq/Screenshot%20from%202019-05-01%2000-15-57.png","https://cdn.steemitimages.com/DQmNQKaWuqVMAPXppQWN7i8vJ1vFwfaBJVVppNDUh3t8S7M/deepracer-logo.png","https://cdn.steemitimages.com/DQmaBedHoLahFtxyAQDUdStH3zXhtdrfnKYMx1jogx3diCn/Peek%202019-05-01%2001-03.gif"],"links":["https://www.aws.training/learningobject/wbc?id=32143%29","https://signin.aws.amazon.com","https://aws.amazon.com/deepracer/pricing/),","https://udemy.com/aws-certified-developer-associate/","https://console.aws.amazon.com/deepracer/home?region=us-east-1%29%2C","https://aws.amazon.com/blogs/aws/the-aws-deepracer-league-virtual-circuit-is-now-open-train-your-model-today/","https://twitter.com/sunilmallya/status/1118888183083651074)","https://github.com/aws-samples/aws-deepracer-workshops","https://codelikeamother.uk","https://codelikeamother.uk/training-a-car-for-an-autonomous-race","https://steemit.com/programming/@codelikeamother/training-a-car-for-an-autonomous-race"],"category":{"_id":"5ca0215af22d6d0019f5beb0","steem_tag":"programming","slug":"programming","name":"Programming"},"app":"engrave","format":"markdown","domain":"codelikeamother.uk"}
created2019-05-01 05:08:36
last_update2019-05-01 05:08:36
depth0
children4
last_payout2019-05-08 05:08:36
cashout_time1969-12-31 23:59:59
total_payout_value25.626 HBD
curator_payout_value9.887 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length8,572
author_reputation3,544,171,499,075
root_title"AWS DeepRacer Console is live! Time to train."
beneficiaries
0.
accountengrave
weight1,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id84,048,622
net_rshares82,222,755,357,719
author_curate_reward""
vote details (147)
@ocd ·
**Congratulations**, your post was discovered and featured by @OCD in its [daily compilation #314](https://steemit.com/ocd/@ocd/ocd-daily-issue-314)!

If you give @ocd a follow – you can find other *Gems*!

---

With this nomination you will be able to use @ocdb - a non-profit distribution bot for whitelisted Steemians. Check our [website](https://thegoodwhales.io/) for the whitelist, queue and delegation info. Join our [Discord channel for more information](https://discord.gg/YGVAvvm). We usually add everyone nominated at the end of the week. :) 

---

We also have a witness. You can vote for @ocd-witness with [SteemConnect](https://v2.steemconnect.com/sign/account-witness-vote?witness=ocd-witness&approve=1) or on [Steemit Witnesses](https://steemit.com/~witnesses) to help support other undervalued authors!

We strive for transparency!
properties (22)
authorocd
permlinkre-codelikeamother-aws-deepracer-console-is-live-time-to-train-20190505t002323589z
categoryprogramming
json_metadata{"tags":["programming"],"users":["ocd","ocdb","ocd-witness"],"links":["https://steemit.com/ocd/@ocd/ocd-daily-issue-314","https://thegoodwhales.io/","https://discord.gg/YGVAvvm","https://v2.steemconnect.com/sign/account-witness-vote?witness=ocd-witness&approve=1","https://steemit.com/~witnesses"],"app":"steemit/0.1"}
created2019-05-05 00:23:24
last_update2019-05-05 00:23:24
depth1
children0
last_payout2019-05-12 00:23:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length848
author_reputation5,234,585,778,504,660
root_title"AWS DeepRacer Console is live! Time to train."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id84,268,442
net_rshares0
@steemitboard ·
Congratulations @codelikeamother! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

<table><tr><td>https://steemitimages.com/60x60/http://steemitboard.com/notifications/firstvote.png</td><td>You made your First Vote</td></tr>
<tr><td>https://steemitimages.com/60x60/http://steemitboard.com/notifications/firstcomment.png</td><td>You made your First Comment</td></tr>
</table>

<sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@codelikeamother) and compare to others on the [Steem Ranking](http://steemitboard.com/ranking/index.php?name=codelikeamother)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-codelikeamother-20190501t092759000z
categoryprogramming
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2019-05-01 09:27:57
last_update2019-05-01 09:27:57
depth1
children2
last_payout2019-05-08 09:27:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length934
author_reputation38,975,615,169,260
root_title"AWS DeepRacer Console is live! Time to train."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id84,057,843
net_rshares0
@codelikeamother ·
RE:
STOP
properties (22)
authorcodelikeamother
permlinkre-steemitboard-steemitboard-notify-codelikeamother-20190501t215208481z
categoryprogramming
json_metadata{"app":"engrave"}
created2019-05-01 21:52:09
last_update2019-05-01 21:52:09
depth2
children1
last_payout2019-05-08 21:52:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4
author_reputation3,544,171,499,075
root_title"AWS DeepRacer Console is live! Time to train."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id84,094,368
net_rshares0
@steemitboard ·
Notifications have been disabled. Sorry if I bothered you.
To reactivate notifications, drop me a comment with the word `NOTIFY`
properties (22)
authorsteemitboard
permlinksteemitboard-notify-codelikeamother-20190501t221942000z
categoryprogramming
json_metadata""
created2019-05-01 22:19:42
last_update2019-05-01 22:19:42
depth3
children0
last_payout2019-05-08 22:19:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length129
author_reputation38,975,615,169,260
root_title"AWS DeepRacer Console is live! Time to train."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id84,095,276
net_rshares0