Skip to content

Commit

Permalink
Remove duplicate code (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
helpingstar authored Mar 7, 2024
1 parent fc4bd19 commit 8cbca61
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions cleanrl/ppo_atari.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ def thunk():
else:
env = gym.make(env_id)
env = gym.wrappers.RecordEpisodeStatistics(env)
if capture_video:
if idx == 0:
env = gym.wrappers.RecordVideo(env, f"videos/{run_name}")
env = NoopResetEnv(env, noop_max=30)
env = MaxAndSkipEnv(env, skip=4)
env = EpisodicLifeEnv(env)
Expand Down
3 changes: 0 additions & 3 deletions cleanrl/ppo_atari_lstm.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ def thunk():
else:
env = gym.make(env_id)
env = gym.wrappers.RecordEpisodeStatistics(env)
if capture_video:
if idx == 0:
env = gym.wrappers.RecordVideo(env, f"videos/{run_name}")
env = NoopResetEnv(env, noop_max=30)
env = MaxAndSkipEnv(env, skip=4)
env = EpisodicLifeEnv(env)
Expand Down
3 changes: 0 additions & 3 deletions cleanrl/ppo_atari_multigpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ def thunk():
else:
env = gym.make(env_id)
env = gym.wrappers.RecordEpisodeStatistics(env)
if capture_video:
if idx == 0:
env = gym.wrappers.RecordVideo(env, f"videos/{run_name}")
env = NoopResetEnv(env, noop_max=30)
env = MaxAndSkipEnv(env, skip=4)
env = EpisodicLifeEnv(env)
Expand Down

0 comments on commit 8cbca61

Please sign in to comment.