Skip to content

Commit

Permalink
start aerial for checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiyotech committed Dec 21, 2022
1 parent 605d622 commit 43abd42
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Constants_aerial.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FRAME_SKIP = 4
TIME_HORIZON = 8 # horizon in seconds
TIME_HORIZON = 6 # horizon in seconds
T_STEP = FRAME_SKIP / 120 # real time per rollout step
ZERO_SUM = True
STEP_SIZE = 1_000_000
Expand Down
6 changes: 3 additions & 3 deletions learner_aerial.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
ent_coef=0.01,
)

run_id = "aerial_run1"
run_id = "aerial_run1.01"
wandb.login(key=os.environ["WANDB_KEY"])
logger = wandb.init(dir="./wandb_store",
name="Aerial_Run1",
name="Aerial_Run1.01",
project="Opti",
entity="kaiyotech",
id=run_id,
Expand Down Expand Up @@ -131,7 +131,7 @@
disable_gradient_logging=True,
)

alg.load("aerial_saves/Opti_1665863109.179098/Opti_2300/checkpoint.pt")
alg.load("aerial_saves/Opti_1666209423.1454966/Opti_2380/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
29 changes: 14 additions & 15 deletions worker_aerial.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@
from setter import CoyoteSetter
import Constants_aerial
import os
set_num_threads(1)

set_num_threads(1)

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=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,)
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 Expand Up @@ -62,7 +62,6 @@
streamer_mode = True
evaluation_prob = 0
game_speed = 1
deterministic_streamer = True
auto_minimize = False

match = Match(
Expand Down

0 comments on commit 43abd42

Please sign in to comment.