in ddppo_agents.py [0:0]
def main():
parser = argparse.ArgumentParser()
parser.add_argument(
"--input-type", default="blind", choices=["blind", "rgb", "depth", "rgbd"]
)
parser.add_argument(
"--evaluation", type=str, required=True, choices=["local", "remote"]
)
config_paths = os.environ["CHALLENGE_CONFIG_FILE"]
parser.add_argument("--model-path", default="", type=str)
args = parser.parse_args()
config = get_config(
"configs/ddppo_pointnav.yaml", ["BASE_TASK_CONFIG_PATH", config_paths]
).clone()
config.defrost()
config.PTH_GPU_ID = 0
config.INPUT_TYPE = args.input_type
config.MODEL_PATH = args.model_path
config.RANDOM_SEED = 7
config.freeze()
agent = PPOAgent(config)
if args.evaluation == "local":
challenge = habitat.Challenge(eval_remote=False)
challenge._env.seed(config.RANDOM_SEED)
else:
challenge = habitat.Challenge(eval_remote=True)
challenge.submit(agent)