|
|
|
|
|
|
options.time_scale, |
|
|
|
options.target_frame_rate, |
|
|
|
) |
|
|
|
env = SubprocessEnvManager(env_factory, engine_config, options.num_envs) |
|
|
|
env_manager = SubprocessEnvManager(env_factory, engine_config, options.num_envs) |
|
|
|
curriculum_folder, env, options.lesson |
|
|
|
curriculum_folder, env_manager, options.lesson |
|
|
|
) |
|
|
|
sampler_manager, resampling_interval = create_sampler_manager( |
|
|
|
options.sampler_file_path, run_seed |
|
|
|
|
|
|
# Signal that environment has been launched. |
|
|
|
process_queue.put(True) |
|
|
|
# Begin training |
|
|
|
tc.start_learning(env) |
|
|
|
try: |
|
|
|
tc.start_learning(env_manager) |
|
|
|
finally: |
|
|
|
env_manager.close() |
|
|
|
|
|
|
|
|
|
|
|
def create_sampler_manager(sampler_file_path, run_seed=None): |
|
|
|