Skip to content

Commit

Permalink
chore: add some extra alg run checks
Browse files Browse the repository at this point in the history
  • Loading branch information
EdanToledo committed Sep 1, 2024
1 parent 5284124 commit ecd6177
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_algs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
test-algorithms:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: "${{ matrix.os }}"
timeout-minutes: 30
timeout-minutes: 60

strategy:
matrix:
Expand Down
6 changes: 6 additions & 0 deletions bash_scripts/run-algorithms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

echo "Running All Algorithms..."

# Test a subset of algorithms
python stoix/systems/ppo/anakin/ff_ppo.py arch.total_timesteps=300 arch.total_num_envs=8 arch.num_evaluation=1 system.rollout_length=8
python stoix/systems/ppo/anakin/ff_ppo_continuous.py arch.total_timesteps=300 arch.total_num_envs=8 arch.num_evaluation=1 system.rollout_length=8
python stoix/systems/q_learning/ff_dqn.py arch.total_timesteps=300 arch.total_num_envs=8 arch.num_evaluation=1 system.rollout_length=8
Expand All @@ -17,3 +18,8 @@ python stoix/systems/ddpg/ff_td3.py arch.total_timesteps=300 arch.total_num_envs
python stoix/systems/vpg/ff_reinforce.py arch.total_timesteps=300 arch.total_num_envs=8 arch.num_evaluation=1 system.rollout_length=8
python stoix/systems/awr/ff_awr.py arch.total_timesteps=300 arch.total_num_envs=8 arch.num_evaluation=1 system.rollout_length=8
python stoix/systems/mpo/ff_mpo.py arch.total_timesteps=300 arch.total_num_envs=8 arch.num_evaluation=1 system.rollout_length=8

# Test a subset of networks
python stoix/systems/ppo/anakin/ff_ppo.py arch.total_timesteps=300 arch.total_num_envs=8 arch.num_evaluation=1 system.rollout_length=8 env=gymnax/breakout env.wrapper=null network=cnn network.actor_network.pre_torso.channel_first=False network.critic_network.pre_torso.channel_first=False
python stoix/systems/ppo/anakin/ff_ppo.py arch.total_timesteps=300 arch.total_num_envs=8 arch.num_evaluation=1 system.rollout_length=8 env=gymnax/breakout env.wrapper=null network=visual_resnet network.actor_network.pre_torso.channel_first=False network.critic_network.pre_torso.channel_first=False
python stoix/systems/ppo/anakin/ff_ppo.py arch.total_timesteps=300 arch.total_num_envs=8 arch.num_evaluation=1 system.rollout_length=8 network=mlp_resnet
2 changes: 1 addition & 1 deletion stoix/utils/make_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def apply_optional_wrappers(
A tuple of the environments.
"""
envs = list(envs)
if "wrapper" in config.env:
if "wrapper" in config.env and config.env.wrapper is not None:
for i in range(len(envs)):
envs[i] = hydra.utils.instantiate(config.env.wrapper, env=envs[i])

Expand Down

0 comments on commit ecd6177

Please sign in to comment.