Git Product home page Git Product logo

rizavelioglu / challenge-aido_rl-il Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 1.0 20.21 MB

Reinforcement Learning + Imitation Learning based approach to AI Driving Olympics

Home Page: https://driving-olympics.ai/

License: MIT License

Python 3.11% Dockerfile 0.03% Jupyter Notebook 96.86%
reinforcement-learning self-driving-cars imitation-learning pytorch keras tensorflow supervised-learning behavioral-cloning

challenge-aido_rl-il's Introduction

AI Driving Olympics

Open In Colab

Description

This is a solution baseline for the AI Driving Olympics competition using Reinforcement Learning & Imitation Learning via Supervised Learning (a.k.a. Behavioral Cloning) in PyTorch, Tensorflow, and Tensorflow's Keras for the challenge aido_LF.

The online description of this challenge is here.

For submitting, please follow the instructions available in the book.

Most of the code is explained within its script as well as in the corresponding folder's README.

Getting Started

Go ahead and Open In Cdolab

You can train a reinforcement learning agent (expert) that learns to drive perfectly within an environment. Then you can run the agent on a bunch of different maps/environments to collect data (observation & action pairs) to imitate the expert's behaviour, a.k.a. Imitation Learning, Behaviour Cloning. Finally, you have an agent that navigates within an environment using only one single sensor, the camera.

Installation/Requirements

Follow the installation steps explained in this GitHub repository, which is the official repository of the simulator used at the competition.

Note: You do not need to install anything on your local PC to use the notebook on Colab! That means, without any installation you can train both networks: The RL agent and the IL agent, which at the end yields a self-driving agent! Therefore, you would only need to install the required packages to your local PC if you want to evaluate, visualize how the trained agents work.

More info on the repository

Who can use this repository?

This repository can be used by anyone who would like to ground his/her knowledge in Reinforcement Learning, Imitation Learning, PyTorch, Tensorflow, Keras, and Self-Driving Cars.

What you will learn & and get yourself familiarized with:

  • Simulations in general and how to use them

  • Image processing methods, use-cases for Self-Driving Cars such as; Canny Edge Detection, Lane Line Detection with Hough Lines, etc.

  • Reinforcement Learning and one method of RL, namely DDPG and its implementation in PyTorch

  • Applying DDPG to:

    cartpole-gif

    • a Self-Driving Car that learns itself how to drive well in different environments

    duckie-gif

  • How Imitation Learning can be applied to Self-Driving Cars by training neural network models with both Tensorflow and Keras

  • Submission to a world-wide competition using Docker

Contact Details

This is a project within the curriculum of MSc. Intelligent Systems and supervised by Dr.Andrew Melnik at University Bielefeld. If you are a student at University Bielefeld and interested in this project, Dr.Melnik would be happy to work with you!

challenge-aido_rl-il's People

Contributors

dependabot[bot] avatar rizavelioglu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

shitianyu-hue

challenge-aido_rl-il's Issues

Error operatorPrecedence' from 'pyparsing' - Google Colab

Hello @rizavelioglu,

first of all I want to thank you for your repository for those of us who are starting to learn IA in robotics.

I am trying to run google colab but unfortunately there is an error in the pyparsing library, I tried to install the version you used in the execution of your google colab but I could not solve the error.

Captura de pantalla de 2022-01-22 15-29-09

I hope you can help me because your repository is very good to learn.

thank you very much

Raúl

Confusion about the simulation environment

Hello,

I have a little confusion about the gym-duckietown simulator. My confusion is how does the robot moves forward and avoids obstacles?

For example, in the PID controller script, I didn't see the implementation of controlling the robot to move forward and avoid obstacles. But it can do this in the simulation after I run this script. According to my understanding, it is mainly for path tracking. Does the simulator has already provided the motion planning part?

ModuleNotFoundError: No module named 'duckietown_world'

When i run:
python log.py
I got this error:
Traceback (most recent call last):
File "log.py", line 7, in
from duckietown_rl.gym_duckietown.simulator import Simulator
File "../duckietown_rl/gym_duckietown/simulator.py", line 10, in
from duckietown_world.world_duckietown.pwm_dynamics import get_DB18_nominal, get_DB18_uncalibrated
ModuleNotFoundError: No module named 'duckietown_world'

How to add new maps for RL agent to learn?

Currently, there are only three maps in which RL agent will learn driving. If I want to add more scenarios ( e.g. a straight road with a static obstacle in the middle of the road), how could I do that?

I found that when I run 'get_tile_coordinates.py' script, if I set the map_names as my new map, it will has this error:

Traceback (most recent call last):
File "get_tile_coordinates.py", line 79, in
tile_coord = env._get_tile(i, j)['coords']
TypeError: 'NoneType' object is not subscriptable

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.