Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions scripts/reinforcement_learning/skrl/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
agent_cfg_entry_point = "skrl_cfg_entry_point" if algorithm in ["ppo"] else f"skrl_{algorithm}_cfg_entry_point"
else:
agent_cfg_entry_point = args_cli.agent
algorithm = agent_cfg_entry_point.split("_cfg")[0].split("skrl_")[-1].lower()


@hydra_task_config(args_cli.task, agent_cfg_entry_point)
Expand Down
1 change: 1 addition & 0 deletions scripts/reinforcement_learning/skrl/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
agent_cfg_entry_point = "skrl_cfg_entry_point" if algorithm in ["ppo"] else f"skrl_{algorithm}_cfg_entry_point"
else:
agent_cfg_entry_point = args_cli.agent
algorithm = agent_cfg_entry_point.split("_cfg")[0].split("skrl_")[-1].lower()


@hydra_task_config(args_cli.task, agent_cfg_entry_point)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ models:
initial_log_std: 0.0
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [1024, 512, 256, 128]
activations: elu
output: ACTIONS
Expand All @@ -28,7 +28,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [1024, 512, 256, 128]
activations: elu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ models:
initial_log_std: 0.0
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [256, 128, 64]
activations: elu
output: ACTIONS
Expand All @@ -28,7 +28,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [256, 128, 64]
activations: elu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ models:
initial_log_std: 0.0
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [128, 128, 128]
activations: elu
output: ACTIONS
Expand All @@ -28,7 +28,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [128, 128, 128]
activations: elu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ models:
initial_log_std: 0.0
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [512, 256, 128]
activations: elu
output: ACTIONS
Expand All @@ -28,7 +28,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [512, 256, 128]
activations: elu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ models:
initial_log_std: 0.0
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [32, 32]
activations: elu
output: ACTIONS
Expand All @@ -28,7 +28,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [32, 32]
activations: elu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ models:
initial_log_std: 0.0
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [32, 32]
activations: elu
output: ACTIONS
Expand All @@ -28,7 +28,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [32, 32]
activations: elu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ models:
initial_log_std: 0.0
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [32, 32]
activations: elu
output: ACTIONS
Expand All @@ -28,7 +28,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [32, 32]
activations: elu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ models:
initial_log_std: 0.0
network:
- name: features_extractor
input: permute(STATES, (0, 3, 1, 2)) # PyTorch NHWC -> NCHW. Warning: don't permute for JAX since it expects NHWC
input: permute(OBSERVATIONS, (0, 3, 1, 2)) # PyTorch NHWC -> NCHW. Warning: don't permute for JAX since it expects NHWC
layers:
- conv2d: {out_channels: 32, kernel_size: 8, stride: 4, padding: 0}
- conv2d: {out_channels: 64, kernel_size: 4, stride: 2, padding: 0}
Expand All @@ -36,7 +36,7 @@ models:
clip_actions: False
network:
- name: features_extractor
input: permute(STATES, (0, 3, 1, 2)) # PyTorch NHWC -> NCHW. Warning: don't permute for JAX since it expects NHWC
input: permute(OBSERVATIONS, (0, 3, 1, 2)) # PyTorch NHWC -> NCHW. Warning: don't permute for JAX since it expects NHWC
layers:
- conv2d: {out_channels: 32, kernel_size: 8, stride: 4, padding: 0}
- conv2d: {out_channels: 64, kernel_size: 4, stride: 2, padding: 0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ models:
initial_log_std: 0.0
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [32, 32]
activations: elu
output: ACTIONS
Expand All @@ -28,7 +28,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [32, 32]
activations: elu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ models:
initial_log_std: 0.0
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [256, 128, 64]
activations: elu
output: ACTIONS
Expand All @@ -28,7 +28,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [256, 128, 64]
activations: elu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ models:
initial_log_std: 0.0
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [400, 200, 100]
activations: elu
output: ACTIONS
Expand All @@ -28,7 +28,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [400, 200, 100]
activations: elu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ models:
fixed_log_std: True
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [1024, 512]
activations: relu
output: ACTIONS
Expand All @@ -29,7 +29,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [1024, 512]
activations: relu
output: ONE
Expand All @@ -38,7 +38,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [1024, 512]
activations: relu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ models:
fixed_log_std: True
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [1024, 512]
activations: relu
output: ACTIONS
Expand All @@ -29,7 +29,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [1024, 512]
activations: relu
output: ONE
Expand All @@ -38,7 +38,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [1024, 512]
activations: relu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ models:
fixed_log_std: True
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [1024, 512]
activations: relu
output: ACTIONS
Expand All @@ -29,7 +29,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [1024, 512]
activations: relu
output: ONE
Expand All @@ -38,7 +38,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [1024, 512]
activations: relu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ models:
initial_log_std: 0.0
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [64, 64]
activations: elu
output: ACTIONS
Expand All @@ -28,7 +28,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [64, 64]
activations: elu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ models:
initial_log_std: 0.0
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [400, 400, 200, 100]
activations: elu
output: ACTIONS
Expand All @@ -28,7 +28,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [512, 512, 256, 128]
activations: elu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ models:
initial_log_std: 0.0
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [512, 512, 256, 128]
activations: elu
output: ACTIONS
Expand All @@ -28,7 +28,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [512, 512, 256, 128]
activations: elu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ models:
initial_log_std: 0.0
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [512, 256, 128]
activations: elu
output: ACTIONS
Expand All @@ -28,7 +28,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [512, 256, 128]
activations: elu
output: ONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ models:
initial_log_std: 0.0
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [512, 512, 256, 128]
activations: elu
output: ACTIONS
Expand All @@ -28,7 +28,7 @@ models:
clip_actions: False
network:
- name: net
input: STATES
input: OBSERVATIONS
layers: [512, 512, 256, 128]
activations: elu
output: ONE
Expand Down
Loading
Loading