Giter Site home page Giter Site logo

pregege / reinforcement-learning-based-driving-decision-in-carla_pt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from youngyoung619/reinforcement-learning-based-driving-decision-in-carla

0.0 0.0 0.0 20 MB

reinforcement learning based agents for self-driving in CARLA

License: Apache License 2.0

Python 100.00%

reinforcement-learning-based-driving-decision-in-carla_pt's Introduction

Reinforcement-learning-based-driving-decision-in-Carla

This package includes some deep reinforcement learning based agents for self-driving-car in CARLA.

Requirement

opencv-python == 4.1.1.26
pytorch == 1.3.0
CARLA == 0.9.5

Scenario-I (ObstacleAvoidance-v0)

This scenario will randomly place some static vehicles in a straight-lane. The agent should drive safely without any collision and lane-invasion (solid) behavior. The following script gives you an example of training an agent in this scenario.

python results/obstacle_avoidance_carla.py

The following script shows how to visualize the agent behavior after training.

python environments\carla_enviroments\test_env_v1_ObstacleAvoidance.py

The following animation show the agent behavior in this scenario.
DQN_with_fixed_target

Scenario-II (ObstacleAvoidance-v2)

A dynamic traffic. Some vehicles are randomly placed in a straight-lane, and are set as autopilot mode. The agent should drive safely without any collision and lane-invasion (solid) behavior.
We suggest you train the agent at static traffic at first and resume the model at this scenario, it will accelerate the network convergence.The following script gives you an example of training an agent in this scenario.

setting the env_title = "ObstacleAvoidance-v2" in obstacle_avoidance_carla.py, and then
python results/obstacle_avoidance_carla.py

The following animation show the agent behavior in this scenario.
DDQN_PR_dynamic

reinforcement-learning-based-driving-decision-in-carla_pt's People

Contributors

youngyoung619 avatar

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.