Skip to content

Commit

Permalink
print config and args before training
Browse files Browse the repository at this point in the history
  • Loading branch information
luoming3 committed Mar 6, 2024
1 parent 86b8c6f commit cb5dde7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion offpolicy/scripts/train/train_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
from offpolicy.envs.custom.env_discrete import DiscreteActionEnv
from offpolicy.envs.env_wrappers import DummyVecEnv, SubprocVecEnv

import pprint


def make_train_env(all_args):
def get_env_fn(rank):
Expand Down Expand Up @@ -161,8 +163,8 @@ def policy_mapping_fn(agent_id): return 'policy_' + str(agent_id)
"run_dir": run_dir
}

import pprint
pprint.pprint(config)
pprint.pprint(vars(all_args))

total_num_steps = 0
runner = Runner(config=config)
Expand Down

0 comments on commit cb5dde7

Please sign in to comment.