Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Commit

Permalink
Add eval_every_n to configure file to easy tuning.
Browse files Browse the repository at this point in the history
  • Loading branch information
fanshi14 committed Mar 14, 2020
1 parent ed4c5d5 commit ef251fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions raisim_gym/env/env/ANYmal/ANYmal_bear2/default_cfg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ record_video: yes
environment:
render: True
num_envs: 100
eval_every_n: 50
num_threads: 40
simulation_dt: 0.0025
control_dt: 0.01
Expand Down
2 changes: 1 addition & 1 deletion scripts/anymal_blind_locomotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
TensorboardLauncher(saver.data_dir + '/PPO2_1')

# PPO run
model.learn(total_timesteps=400000000, eval_every_n=50, log_dir=saver.data_dir, record_video=cfg['record_video'])
model.learn(total_timesteps=400000000, eval_every_n=cfg['environment']['eval_every_n'], log_dir=saver.data_dir, record_video=cfg['record_video'])

# Need this line if you want to keep tensorflow alive after training
input("Press Enter to exit... Tensorboard will be closed after exit\n")
Expand Down

0 comments on commit ef251fc

Please sign in to comment.