Giter VIP home page Giter VIP logo

Comments (4)

dementrock avatar dementrock commented on July 25, 2024

Quick solution is to change max_path_length to 200.

Basically the error is because the horizon does not match the one used in the gym environment spec.

from rllab.

dementrock avatar dementrock commented on July 25, 2024

Fixed in 4fd25fe.

from rllab.

dqii avatar dqii commented on July 25, 2024

Hi, I'm getting a similar error when running ddpg on CarRacing-v0:

File "/Users/diqi/iw_s17/rllab/scripts/run_experiment_lite.py", line 136, in
run_experiment(sys.argv)
File "/Users/diqi/iw_s17/rllab/scripts/run_experiment_lite.py", line 120, in run_experiment
method_call(variant_data)
File "examples/ddpg_car.py", line 42, in run_task
algo.train()
File "/Users/diqi/iw_s17/rllab/rllab/algos/ddpg.py", line 229, in train
next_observation, reward, terminal, _ = self.env.step(action)
File "/Users/diqi/iw_s17/rllab/rllab/envs/normalized_env.py", line 86, in step
wrapped_step = self._wrapped_env.step(scaled_action)
File "/Users/diqi/iw_s17/rllab/rllab/envs/gym_env.py", line 116, in step
next_obs, reward, done, info = self.env.step(action)
File "/Users/diqi/anaconda/envs/rllab3/lib/python3.5/site-packages/gym/core.py", line 100, in step
return self._step(action)
File "/Users/diqi/anaconda/envs/rllab3/lib/python3.5/site-packages/gym/wrappers/monitoring.py", line 32, in _step
self._before_step(action)
File "/Users/diqi/anaconda/envs/rllab3/lib/python3.5/site-packages/gym/wrappers/monitoring.py", line 167, in _before_step
self.stats_recorder.before_step(action)
File "/Users/diqi/anaconda/envs/rllab3/lib/python3.5/site-packages/gym/monitoring/stats_recorder.py", line 46, in before_step
raise error.ResetNeeded("Trying to step environment which is currently done. While the monitor is active for {}, you cannot step beyond the end of an episode. Call 'env.reset()' to start the next episode.".format(self.env_id))
gym.error.ResetNeeded: Trying to step environment which is currently done. While the monitor is active for CarRacing-v0, you cannot step beyond the end of an episode. Call 'env.reset()' to start the next episode.

from rllab.

dementrock avatar dementrock commented on July 25, 2024

@dqii see #87 (comment)

from rllab.

Related Issues (20)

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.