Git Product home page Git Product logo

autonomous-drifting-using-deep-reinforcement-learning's Introduction

Autonomous-Drifting-using-deep-Reinforcement-Learning

A Soft Actor Policy based model free off-policy network to control the steering and throttle of car while drifting at high speeds.

  • Our model will be trained using the Soft-Actor Critic (SAC), which optimizes the error loss (anticipated return - prediction) and maximizes entropy using an off-policy learning strategy to perform better in continuous domains.

  • Control policy is the actor in SAC, while value and Q-network will function as critics.

  • The basic goal of the actor is to maximize reward while minimizing entropy (measure of randomness in the policy - more exploration)

Project Demo

DEMO

Training

DEMO

Map for training

Basic Demo of Simualtor

Environment

  • Ubuntu 20.04
  • Conda : Package and environment manager
  • Python 3.8
  • Pytorch
  • Pygame

Installation steps for CARLA simulator

We are using CARLA 0.9.5 as our version for our simulation.

Please download the the simulator from this drive

Extract the folder in your Downloads directory.

If you have a dual GPU setup , please enter the following command to enable your secondary graphics card as the primary one.

export VK_ICD_FILENAMES="/usr/share/vulkan/icd.d/nvidia_icd.json"
Add Path to your bash file

export PYTHONPATH=$PYTHONPATH:~/Downloads/CARLA_DRIFT_0.9.5/PythonAPI/carla/dist/carla-0.9.5-py3.5-linux-x86_64.egg
export PYTHONPATH=$PYTHONPATH:~/Downloads/CARLA_DRIFT_0.9.5/PythonAPI/carla/

To open and run the simulator please enter the below commands open a new terminal

cd Downloads/CARLA_DRIFT_0.9.5
./CarlaUE4.sh /Game/Carla/ExportedMaps/simple

This will show up the map.If you want to spawn vehicles and manually control the vehicle in the above map please enter the below commands.

Open a New terminal
cd Downloads/CARLA_DRIFT_0.9.5/PythonAPI/examples
./spawn_npc.py

This will spawn vehicels in the map.

To control a vehicle in the environment, enter the below commands.

Open a New terminal
cd Downloads/CARLA_DRIFT_0.9.5/PythonAPI/examples
./manual_control.py

#TODO

Need to take reference trajectories data for the above map and train with the SAC.

autonomous-drifting-using-deep-reinforcement-learning's People

Contributors

karanamrahul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

sun785785

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.