Giter VIP home page Giter VIP logo

ddpg-her's Introduction

DDPG + HER

Implementation of the Deep Deterministic Policy Gradient with Hindsight Experience Replay Extension on the MuJoCo's robotic FetchPickAndPlace environment.

Visit vanilla_DDPG branch for the implementation without the HER extention.

Dependencies

  • gym == 0.17.2
  • matplotlib == 3.1.2
  • mpi4py == 3.0.3
  • mujoco-py == 2.0.2.13
  • numpy == 1.19.1
  • opencv_contrib_python == 3.4.0.12
  • psutil == 5.4.2
  • torch == 1.4.0

Installation

pip3 install -r requirements.txt

Usage

mpirun -np $(nproc) python3 -u main.py

Demo

Result

Reference

  1. Continuous control with deep reinforcement learning, Lillicrap et al., 2015
  2. Hindsight Experience Replay, Andrychowicz et al., 2017
  3. Multi-Goal Reinforcement Learning: Challenging Robotics Environments and Request for Research, Plappert et al., 2018

Acknowledgement

All the credit goes to @TianhongDai for his simplified implementation of the original OpenAI's code.

ddpg-her's People

Contributors

alirezakazemipour 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

ddpg-her's Issues

Request Suggestions For Hand Environments

First of all, thank you very much for writing a pytorch implementation of DDPG+HER.
I found that this implementation works very well for all of the Fetcher environments available in gym.
Example: FetchPickAndPlace-v1

However, using the same approach for the Hand environments doesn't seem to work as well.
Example: HandManipulateEgg-v0

It's understandable that the performance wouldn't be as good since the Hand environments seem more difficult than the Fetcher environments. I was hoping that I could increase the success rate by increasing the number of epochs, but the problem at hand doesn't seem to be that simple.

Does anyone have any suggestions for how to improve the current repository so that it achieves a higher success rate for the Hand environments?

The observation in the env

Hello,
I have a question of fetchreach_env.
In fetchreach_env,i don't konw the gripper_vel and gripper_state really mean,because the gripper doesn't need to open or close.Mabye those obs are useful in pickandplace_env.

And I try change obs in fetchreach_env.
Like this :obs = grip_pos.
Just the coordinates of the grip,and exclude the gripper_vel and gripper_state, then I use HER to train a model ,the success rate after 10 epochs is 1.

So, in fetchreach_env do I really need the gripper_vel or gripper_state.
Thank you.

Can't solve task for fetchPickAndPlace-v2

Hi, thanks for providing this code. I failed to reproduce the result you have achieved with the updated environment from gymnasium Robotics and I observed the success rate remains around 0. I have modified the code a little bit so it matches the updated environment, and I tested the code with fetchReach-v2 which works well. I'm wondering what aspects I should investigate? or Perhaps you've encountered a similar challenge in the past and could offer some pointers. Thanks for your help!!!!!

pick_place do not work

Hello, have you made any changes to the pickplace environment itself? I used DDPG+HER in stable-baseline3 and did not train the results. The reward of the environment itself is only the distance between the target point and the object, which is very simple

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.