Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Kaiyotech/Opti
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiyotech committed Jul 11, 2023
2 parents 39f260d + 07781fd commit 0a22690
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion learner_gp.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
disable_gradient_logging=True,
)

alg.load("GP_saves/Opti_1682965527.8770707/Opti_42050/checkpoint.pt")
alg.load("GP_saves/Opti_1683132125.3858902/Opti_42240/checkpoint.pt")


alg.agent.optimizer.param_groups[0]["lr"] = logger.config.actor_lr
Expand Down
6 changes: 3 additions & 3 deletions worker_gp.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
non_latest_version_prob = [1, 0, 0, 0] # [0.825, 0.0826, 0.0578, 0.0346] # this includes past_version and pretrained
deterministic_streamer = True
force_old_deterministic = False
gamemode_weights = {'1v1': 0.30, '2v2': 0.25, '3v3': 0.45}
gamemode_weights = {'1v1': 0, '2v2': 1, '3v3': 0}
visualize = False
simulator = False
simulator = True
batch_mode = True
team_size = 3
dynamic_game = True
Expand Down Expand Up @@ -167,7 +167,6 @@
TimeoutCondition(fps * 300),
],
reward_function=rew,
tick_skip=frame_skip,
)

# local Redis
Expand Down Expand Up @@ -218,6 +217,7 @@
simulator=simulator,
visualize=False,
live_progress=False,
tick_skip=Constants_gp.FRAME_SKIP,
)

worker.env._match._obs_builder.env = worker.env # noqa
Expand Down
1 change: 1 addition & 0 deletions worker_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ def setup_streamer():
# parser_boost_split=parser.get_model_action_size(),
# initial_choice_block_indices=[2, 37],
# initial_choice_block_weight=0.5,
tick_skip=Constants_selector.FRAME_SKIP,
)

worker.env._match._obs_builder.env = worker.env
Expand Down

0 comments on commit 0a22690

Please sign in to comment.