Skip to content

Commit 0843b8c

Browse files
authored
update config (#24)
* update config * remove config log
1 parent 0beeed7 commit 0843b8c

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

train.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,20 @@ def __init__(
302302
class HumanoidWalkingTaskConfig(ksim.PPOConfig):
303303
"""Config for the humanoid walking task."""
304304

305+
# Task parameters.
306+
num_envs: int = xax.field(
307+
value=1,
308+
help="The number of environments to run in parallel.",
309+
)
310+
batch_size: int = xax.field(
311+
value=1,
312+
help="The batch size for the PPO training.",
313+
)
314+
315+
rollout_length_seconds: float = xax.field(
316+
value=1.0,
317+
help="The length of the rollout in seconds.",
318+
)
305319
# Model parameters.
306320
hidden_size: int = xax.field(
307321
value=128,
@@ -621,7 +635,6 @@ def sample_action(
621635
commands=commands,
622636
carry=actor_carry_in,
623637
)
624-
625638
action_j = action_dist_j.mode() if argmax else action_dist_j.sample(seed=rng)
626639

627640
return ksim.Action(

0 commit comments

Comments
 (0)