diff --git a/lerobot/scripts/control_robot.py b/lerobot/scripts/control_robot.py index a6506a3fe..068246558 100644 --- a/lerobot/scripts/control_robot.py +++ b/lerobot/scripts/control_robot.py @@ -445,7 +445,7 @@ def on_press(key): # Using `with` to exist smoothly if an execption is raised. futures = [] num_image_writers = num_image_writers_per_camera * len(robot.cameras) - with concurrent.futures.ThreadPoolExecutor(max_workers=num_image_writers) as executor: + with concurrent.futures.ProcessPoolExecutor(max_workers=num_image_writers) as executor: # Start recording all episodes while episode_index < num_episodes: logging.info(f"Recording episode {episode_index}")