Skip to content

Commit

Permalink
Fix Issue Interbotix#1: Use ProcessPoolExecutor instead of ThreadPool…
Browse files Browse the repository at this point in the history
…Executor
  • Loading branch information
shantanuparab-tr committed Sep 19, 2024
1 parent c712d68 commit d120f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lerobot/scripts/control_robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit d120f96

Please sign in to comment.