Skip to content

Commit 13f4bfc

Browse files
thowellcopybara-github
authored andcommitted
Update manipulation environments for Warp backend.
PiperOrigin-RevId: 831760691 Change-Id: I63716e9549a624bb6b4782687ddff515f17243eb
1 parent b1417e4 commit 13f4bfc

File tree

6 files changed

+5
-18
lines changed

6 files changed

+5
-18
lines changed

mujoco_playground/_src/manipulation/aloha/handover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def default_config() -> config_dict.ConfigDict:
4242
),
4343
),
4444
impl='jax',
45-
nconmax=24 * 8192,
45+
nconmax=24 * 2048,
4646
njmax=88,
4747
)
4848

mujoco_playground/_src/manipulation/aloha/single_peg_insertion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def default_config() -> config_dict.ConfigDict:
4949
)
5050
),
5151
impl="jax",
52-
nconmax=24 * 8192,
52+
nconmax=24 * 1024,
5353
njmax=256,
5454
)
5555

mujoco_playground/_src/manipulation/franka_emika_panda/open_cabinet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def default_config() -> config_dict.ConfigDict:
4949
)
5050
),
5151
impl="jax",
52-
nconmax=12 * 8192,
52+
nconmax=12 * 2048,
5353
njmax=96,
5454
)
5555

mujoco_playground/_src/manipulation/franka_emika_panda/pick.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def default_config() -> config_dict.ConfigDict:
4848
)
4949
),
5050
impl='jax',
51-
nconmax=24 * 8192,
51+
nconmax=24 * 2048,
5252
njmax=128,
5353
)
5454
return config

mujoco_playground/_src/manipulation/franka_emika_panda/pick_cartesian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def default_config():
7575
success_threshold=0.05,
7676
action_history_length=1,
7777
impl='jax',
78-
nconmax=12 * 8192,
78+
nconmax=12 * 1024,
7979
njmax=128,
8080
)
8181
return config

mujoco_playground/config/manipulation_params.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ def brax_ppo_config(
6464
rl_config.num_envs = 1024
6565
rl_config.batch_size = 512
6666
rl_config.network_factory.policy_hidden_layer_sizes = (256, 256, 256, 256)
67-
if impl == "warp":
68-
rl_config.num_timesteps *= 3
69-
rl_config.num_evals *= 3
7067
elif env_name == "PandaOpenCabinet":
7168
rl_config.num_timesteps = 40_000_000
7269
rl_config.num_evals = 4
@@ -94,9 +91,6 @@ def brax_ppo_config(
9491
rl_config.network_factory.policy_hidden_layer_sizes = (256, 256)
9592
rl_config.num_resets_per_eval = 1
9693
rl_config.max_grad_norm = 1.0
97-
if impl == "warp":
98-
rl_config.num_timesteps *= 4
99-
rl_config.num_evals *= 4
10094
elif env_name.startswith("PandaPickCube"):
10195
rl_config.num_timesteps = 20_000_000
10296
rl_config.num_evals = 4
@@ -109,9 +103,6 @@ def brax_ppo_config(
109103
rl_config.num_envs = 2048
110104
rl_config.batch_size = 512
111105
rl_config.network_factory.policy_hidden_layer_sizes = (32, 32, 32, 32)
112-
if impl == "warp":
113-
rl_config.num_timesteps *= 4
114-
rl_config.num_evals *= 4
115106
elif env_name == "PandaRobotiqPushCube":
116107
rl_config.num_timesteps = 1_800_000_000
117108
rl_config.num_evals = 10
@@ -126,10 +117,6 @@ def brax_ppo_config(
126117
rl_config.num_resets_per_eval = 1
127118
rl_config.num_eval_envs = 32
128119
rl_config.network_factory.policy_hidden_layer_sizes = (64, 64, 64, 64)
129-
if impl == "warp":
130-
rl_config.num_resets_per_eval = 10
131-
rl_config.num_timesteps = int(rl_config.num_timesteps * 1.5)
132-
rl_config.num_evals = int(rl_config.num_evals * 1.5)
133120
elif env_name == "LeapCubeRotateZAxis":
134121
rl_config.num_timesteps = 100_000_000
135122
rl_config.num_evals = 10

0 commit comments

Comments
 (0)