Skip to content

Commit

Permalink
removed dependence of gymutil.py from the training scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Mihir Kulkarni <[email protected]>
  • Loading branch information
mihirk284 committed Dec 27, 2024
1 parent 71bf152 commit dca7cb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion aerial_gym/rl_training/cleanrl/ppo_continuous_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@


from aerial_gym.registry.task_registry import task_registry
from aerial_gym.utils.helpers import parse_arguments


def get_args():
Expand Down Expand Up @@ -219,7 +220,7 @@ def get_args():
]

# parse arguments
args = gymutil.parse_arguments(description="RL Policy", custom_parameters=custom_parameters)
args = parse_arguments(description="RL Policy", custom_parameters=custom_parameters)

args.batch_size = int(args.num_envs * args.num_steps)
args.minibatch_size = int(args.batch_size // args.num_minibatches)
Expand Down
3 changes: 2 additions & 1 deletion aerial_gym/rl_training/rl_games/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@


from aerial_gym.registry.task_registry import task_registry
from aerial_gym.utils.helpers import parse_arguments

import gym
from gym import spaces
Expand Down Expand Up @@ -249,7 +250,7 @@ def get_args():
]

# parse arguments
args = gymutil.parse_arguments(description="RL Policy", custom_parameters=custom_parameters)
args = parse_arguments(description="RL Policy", custom_parameters=custom_parameters)

# name allignment
args.sim_device_id = args.compute_device_id
Expand Down

0 comments on commit dca7cb8

Please sign in to comment.