Most of the custom code is present in the deepracer-gym folder, where the notebooks and util functions resides.
The idea during this project was to try out many different RL algorithms and feature extractions methods to create the fastest running agent in the simulation tracks. Some attempts at this involve using otsu thresholding to differentiate the road boundaries and center, disparity maps for future object detection, and using stable_baselines3 RL library with different feature extraction models to try out different RL algortihms for our agent.
The Image-related features we had the most success with were adding otsu thresholding with 3 classes, to segment the image in three parts : the road, the sidelines, and the middle dotted line.| Left Image | Right Image | Left Otsu Thresholding | Right Otsu Thresholding |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
We tried out using Gradcam to verify if our model was using the right part of the images to determine which action to take, but we were not always convinced of the result.
| Gradcam | Disparity |
|---|---|
![]() |
![]() |







