def env_fn(env_id):
     return UnityEnvironment(num_agents=2,
                            max_episode_length=args.max_episode_length,
                            port_id=env_id,
                            env_task_set=env_task_set,
                            observation_types=[args.obs_type, args.obs_type],
                            use_editor=args.use_editor,
                            executable_args=executable_args,
                            base_port=args.base_port)
Esempio n. 2
0
 def env_fn(env_id):
     return UnityEnvironment(num_agents=num_agents,
                             max_episode_length=args.max_episode_length,
                             port_id=env_id,
                             env_task_set=env_task_set,
                             agent_goals=agent_goals,
                             observation_types=observation_types,
                             use_editor=args.use_editor,
                             executable_args=executable_args,
                             base_port=args.base_port,
                             seed=None)