Code Monkey home page Code Monkey logo

bipedalwalker's Introduction

forthebadge made-with-python

Python 3.6 LinkedIn-profile GitHub followers GitHub stars

BipedalWalker

This is how I taught a dumb bot to walk on two feet.

Bipedal Walker is an OpenAI Gym environment where an agent learns to control a bipedal 2D character to reach the end of an obstacle course. What makes this challenging is that the agent only receives limbs coordinates along with the Lidar information. The agent has to learn to balance,walk,run,jump on its own without any human intervention.

Environment Specifications

Reward is given for moving forward, total 300+ points up to the far end. If the robot falls, it gets -100. Applying motor torque costs a small amount of points, more optimal agent will get better score. State consists of hull angle speed, angular velocity, horizontal speed, vertical speed, position of joints and joints angular speed, legs contact with ground, and 10 lidar rangefinder measurements. There's no coordinates in the state vector.

Algorithms

  • Deep Q Learning
  • NeuroEvolution of Augmenting Topologies
  • Deep Deterministic Policy Gradients

Cloning

$ git clone https://github.com/7enTropy7/BipedalWalker.git

Directory Contents

$ cd BipedalWalker/
$ tree
.
├── DDPG
│   ├── actor_checkpoint.pth
│   ├── critic_checkpoint.pth
│   ├── __pycache__
│   │   └── walker.cpython-37.pyc
│   ├── test.py
│   ├── train.py
│   └── walker.py
├── DQN
│   ├── ai.py
│   ├── Bipedal-dqn-testing.h5
│   └── main.py
├── NEAT
│   ├── config-bipedal-walker.txt
│   └── neat_walker.py
├── README.md
└── requirements.txt

4 directories, 13 files

Installing Dependencies

$ pip3 install -r requirements.txt

Testing Instructions

$ cd BipedalWalker/DDPG/
$ python3 test.py

DDPG Output

After training for around 2000 episodes (6 hours of training on my low-end CPU).

ezgif com-video-to-gif (8)


Author

LinkedIn-profile

bipedalwalker's People

Contributors

7entropy7 avatar

Watchers

James Cloos 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.