Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
araffin committed Oct 27, 2018
1 parent 44c14f9 commit dde1afa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ Changelog

For download links, please look at `Github release page <https://github.com/araffin/robotics-rl-srl/releases>`_.

Pre-Release 1.0.1 (WIP)
-----------------------

- fixed a bug in the dataset generator where the GUI was instantiated two times
- updated stable-baselines version + srl-zoo submodule

Release 1.0 (2018-10-09)
-------------------------
**Stable Baselines Version**
Expand Down
4 changes: 3 additions & 1 deletion environments/dataset_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ def env_thread(args, thread_num, partition=True, use_ppo2=False):

env_class = registered_env[args.env][0]
env = env_class(**env_kwargs)

# Additional env when using a trained ppo agent to generate data
# instead of a random agent
train_env = env_class(**{**env_kwargs, "record_data": False, "renders": False})
train_env = DummyVecEnv([lambda: train_env])
train_env = VecNormalize(train_env, norm_obs=True, norm_reward=False)


model = None
if use_ppo2:
model = PPO2(CnnPolicy, train_env).learn(args.ppo2_timesteps)
Expand Down

0 comments on commit dde1afa

Please sign in to comment.