GithubHelp home page GithubHelp logo

diy-gym's People

Contributors

fernandocamaro avatar hocjordan avatar ktlichkid avatar lbermillo avatar thomascent avatar

Stargazers

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

Watchers

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

diy-gym's Issues

Use w/ stable_baselines

Hi @thomascent,

I've been trying to use your envs with a stable_baselines algo (here's the cleaned-up repository) but I had to do some adjustments in order to make them compatible :
1. normalize and make symmetric action space
2. flatten observation space and action space
3. sum the rewards
4. compress the terminal signal
5. vectorize the environment
also, I had to make a quick fix to the observation space boundaries because the reset() method would return an observation that is outside the observation space (?).
These adjustments were detected via the use of the methods check_env() and set_env() from stable_baselines.

I used the example from the readme, and I tried to train a PPO2 model, with 6e5 training steps but unfortunately, this is the result (the values printed on the terminal are the reward).
I believe that the training affects only one joint and not also the others and as a result, the arm stretches only.
Any idea on how to approach this problem?
Also, you mentioned that you tested your environments using other agents. Can you upload a functioning example (e.g. the TD3 that you mentioned) please?

still active?

This repo seems fantastic! I am planning to test it extensively in the next few days!

I see that it was created 2 years ago, though. Is this project still active?
Also, did you publish this work on a paper/medium article?

All the best

update requirements.txt

Tried to install it today! Just a couple of modifications to make it work:

  1. after running pip install -r requirements.txt I got the error:
    "Could not find a version that satisfies the requirement unittest"
    which I solved by deleting unittest from the requirements. Solution explained here.
  2. when I tried to run python ur_high_5.py I got this other error:
    "segmentation fault (core dumped)"
    which I solved by installing an old version of gym.

To summarize I modified the requirements as follows:

numpy
gym<=0.15.3
pybullet
pyyaml
tqdm
argparse
requests

and now I can launch the test without a problem!
I hope this helps! :)

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.