Skip to content

Commit 714e786

Browse files
authored
Refactor replay based scripts (#173)
* Fix the seed issue: see #171 * Quick fix * log `episodic_length` * Fix #172 * Fix #148 and #172-style problem for SAC * Add benchmark scripts * add sac script * Removes gradient clipping reference * use the latest reproduction script * Remove past reproducibility script * update documentation
1 parent 707e8f9 commit 714e786

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+114
-502
lines changed

benchmark/c51.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
poetry install
2+
OMP_NUM_THREADS=1 xvfb-run -a python -m cleanrl_utils.benchmark \
3+
--env-ids CartPole-v1 Acrobot-v1 MountainCar-v0 \
4+
--command "poetry run python cleanrl/c51.py --cuda False --track --capture-video" \
5+
--num-seeds 3 \
6+
--workers 9
7+
8+
poetry install -E atari
9+
OMP_NUM_THREADS=1 xvfb-run -a python -m cleanrl_utils.benchmark \
10+
--env-ids PongNoFrameskip-v4 BeamRiderNoFrameskip-v4 BreakoutNoFrameskip-v4 \
11+
--command "poetry run python cleanrl/c51_atari.py --track --capture-video" \
12+
--num-seeds 3 \
13+
--workers 1

benchmark/c51/README.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

benchmark/c51/atari.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

benchmark/c51/classic_control.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

benchmark/ddpg.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
poetry install -E "mujoco pybullet"
2+
python -c "import mujoco_py"
3+
OMP_NUM_THREADS=1 xvfb-run -a python -m cleanrl_utils.benchmark \
4+
--env-ids HalfCheetah-v2 Walker2d-v2 Hopper-v2 \
5+
--command "poetry run python cleanrl/ddpg_continuous_action.py --track --capture-video" \
6+
--num-seeds 3 \
7+
--workers 3

benchmark/ddpg/README.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

benchmark/ddpg/mujoco.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

benchmark/dqn.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
poetry install
2+
OMP_NUM_THREADS=1 xvfb-run -a python -m cleanrl_utils.benchmark \
3+
--env-ids CartPole-v1 Acrobot-v1 MountainCar-v0 \
4+
--command "poetry run python cleanrl/dqn.py --cuda False --track --capture-video" \
5+
--num-seeds 3 \
6+
--workers 9
7+
8+
poetry install -E atari
9+
OMP_NUM_THREADS=1 xvfb-run -a python -m cleanrl_utils.benchmark \
10+
--env-ids PongNoFrameskip-v4 BeamRiderNoFrameskip-v4 BreakoutNoFrameskip-v4 \
11+
--command "poetry run python cleanrl/dqn_atari.py --track --capture-video" \
12+
--num-seeds 3 \
13+
--workers 1

benchmark/dqn/README.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

benchmark/dqn/atari.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)