Giter VIP home page Giter VIP logo

intrinsic-motivation's People

Contributors

jmichaux avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

intrinsic-motivation's Issues

MuJoCo errors

The Error

I'm getting the following error in MuJoCo:

raise MujocoException('Got MuJoCo Warning: {}'.format(warn)) mujoco_py.builder.MujocoException: Got MuJoCo Warning: Nan, Inf or huge value in QACC at DOF 0. The simulation is unstable. Time = 0.4000.

Based on this, this, this, and this the error is due to time-stepping or actions that are too large.

My observations

There are two things that I noticed:

  1. The Entropy increases over time, from 27 to 165
  2. The actions predicted by the network are quite large, like 1e7 around time the bug occurs

Reproducing the bug

First install the repo. Then, to reproduce the bug starting from the very beginning of training run

python main.py

To reproduce the bug starting at a later point in the training run

python main.py --debug

Questions for debugging

  1. Why does it mater that the actions are large? The environment clips the actions. See below:

https://github.com/jmichaux/multimodal-curiosity/blob/c507206a79595573fcd808cebcf60f98d26789db/multimodal_curiosity/envs/robot_env.py#L63

  1. Will I get errors if I always feed in zeros for the actions?
  • If I load the bad model, it doesn't matter if all the actions are zero. I still see the bug.
  1. What if I change the environment?
  • I see the same error if I use FetchReachDense-v1 and FetchPushDense-v1
  1. Is my cpu the problem?

  2. Do I need to normalize the observations?

ModuleNotFoundError: No module named 'multimodal_envs'

Hi, jmichaux!
I'm interested in your project and I've installed all the libraries you mentioned. I got the following error when I run the main.py:

ModuleNotFoundError: No module named 'multimodal_envs'

I can't find any helpful information and any help will be grateful. Thanks.

When should intrinsic rewards be given?

Right now intrinsic rewards are given on any transition. Intuitively, this isn't quite right because we end up rewarding the agent when it dies. This could, in theory, lead to excessive exploration a la the Noisy TV problem. In practice it doesn't really seem to matter. But it would be interesting to see if we can speed up learning by only giving the exploration bonus on transition where the agent doesn't fail.

Parallelize environments and/or training?

Right now I am only parallelizing the environments to collect more data using the same agent. Does it make sense to use multiple agents for updating the weights? How would I do this? MPI?

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.