Skip to content

Commit

Permalink
stop ceiling pinch, re-start kickoff with fixed obs and bit of 2s 3s,…
Browse files Browse the repository at this point in the history
… restart aerial with team spirit and some reward changes.
  • Loading branch information
Kaiyotech committed Oct 15, 2022
1 parent 8f57fd5 commit b0168af
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions learner_aerial.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@
goal_w=2,
aerial_goal_w=5,
double_tap_w=10,
flip_reset_w=5,
flip_reset_w=10,
flip_reset_goal_w=20,
punish_ceiling_pinch_w=0,
concede_w=-10,
velocity_bg_w=0.25,
acel_ball_w=1,
team_spirit=0,
cons_air_touches_w=0.1,
jump_touch_w=0.2,
team_spirit=1,
cons_air_touches_w=0.02,
jump_touch_w=0.1,
wall_touch_w=0.5,
),
lambda: CoyoteAction(),
Expand Down Expand Up @@ -131,7 +131,7 @@
disable_gradient_logging=True,
)

alg.load("aerial_saves/Opti_1665659381.4329824/Opti_810/checkpoint.pt")
alg.load("aerial_saves/Opti_1665696998.0525448/Opti_1390/checkpoint.pt")
alg.agent.optimizer.param_groups[0]["lr"] = logger.config.actor_lr
alg.agent.optimizer.param_groups[1]["lr"] = logger.config.critic_lr

Expand Down
2 changes: 1 addition & 1 deletion learner_kickoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
disable_gradient_logging=True,
)

alg.load("kickoff_saves/Opti_1664547156.065636/Opti_3300/checkpoint.pt")
alg.load("kickoff_saves/Opti_1664717947.0727122/Opti_4250/checkpoint.pt")
alg.agent.optimizer.param_groups[0]["lr"] = logger.config.actor_lr
alg.agent.optimizer.param_groups[1]["lr"] = logger.config.critic_lr

Expand Down
26 changes: 13 additions & 13 deletions worker_aerial.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@

if __name__ == "__main__":
rew = ZeroSumReward(zero_sum=Constants_aerial.ZERO_SUM,
goal_w=2,
aerial_goal_w=5,
double_tap_w=10,
flip_reset_w=5,
flip_reset_goal_w=20,
punish_ceiling_pinch_w=0,
concede_w=-10,
velocity_bg_w=0.25,
acel_ball_w=1,
team_spirit=0,
cons_air_touches_w=0.1,
jump_touch_w=0.2,
wall_touch_w=0.5,)
goal_w=2,
aerial_goal_w=5,
double_tap_w=10,
flip_reset_w=10,
flip_reset_goal_w=20,
punish_ceiling_pinch_w=0,
concede_w=-10,
velocity_bg_w=0.25,
acel_ball_w=1,
team_spirit=1,
cons_air_touches_w=0.02,
jump_touch_w=0.1,
wall_touch_w=0.5,)
frame_skip = Constants_aerial.FRAME_SKIP
fps = 120 // frame_skip
name = "Default"
Expand Down
2 changes: 1 addition & 1 deletion worker_kickoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
send_obs=True,
auto_minimize=auto_minimize,
send_gamestates=send_gamestate,
gamemode_weights={'1v1': 1, '2v2': 0, '3v3': 0},
gamemode_weights={'1v1': 0.8, '2v2': 0.1, '3v3': 0.1},
streamer_mode=streamer_mode,
deterministic_streamer=deterministic_streamer,
force_old_deterministic=force_old_deterministic,
Expand Down

0 comments on commit b0168af

Please sign in to comment.