-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathlauncher.py
42 lines (34 loc) · 1.54 KB
/
launcher.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
from experiment_launcher import Launcher
from experiment_launcher.utils import is_local
if __name__ == '__main__':
LOCAL = is_local()
TEST = False
USE_CUDA = False
N_SEEDS = 3
launcher = Launcher(exp_name='loco_mujoco_evalution',
exp_file='experiment',
n_seeds=N_SEEDS,
n_cores=1, # only used for slurm
memory_per_core=1500, # only used for slurm
n_exps_in_parallel=10, # should not be used in slurm
days=2, # only used for slurm
hours=0, # only used for slurm
minutes=0, # only used for slurm
use_timestamp=True,
)
default_params = dict(n_epochs=400,
n_steps_per_epoch=100000,
n_epochs_save=25,
n_eval_episodes=10,
n_steps_per_fit=1000,
use_cuda=USE_CUDA)
env_ids = ["Atlas.walk", "Atlas.carry",
"Talos.walk", "Talos.carry",
"UnitreeH1.walk", "UnitreeH1.run", "UnitreeH1.carry",
"UnitreeG1.walk", "UnitreeG1.run",
"HumanoidTorque.walk", "HumanoidTorque.run",
"HumanoidMuscle.walk", "HumanoidMuscle.run",
"UnitreeA1.simple", "UnitreeA1.hard"]
for env_id in env_ids:
launcher.add_experiment(env_id__=env_id, **default_params)
launcher.run(LOCAL, TEST)