in agent.py [0:0]
def main():
parser = argparse.ArgumentParser()
parser.add_argument(
"--evaluation", type=str, required=True, choices=["local", "remote"]
)
args = parser.parse_args()
config_paths = os.environ["CHALLENGE_CONFIG_FILE"]
config = habitat.get_config(config_paths)
agent = RandomAgent(task_config=config)
if args.evaluation == "local":
challenge = habitat.Challenge(eval_remote=False)
else:
challenge = habitat.Challenge(eval_remote=True)
challenge.submit(agent)