mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-30 10:21:24 +00:00
fix(max workers)
Signed-off-by: Caroline Pascal <caroline8.pascal@gmail.com>
This commit is contained in:
@@ -1454,7 +1454,7 @@ class LeRobotDataset(torch.utils.data.Dataset):
|
||||
img_dirs.append(self._get_image_file_dir(episode_index, video_key))
|
||||
fps = [self.fps]*len(video_keys)
|
||||
|
||||
with ProcessPoolExecutor() as executor:
|
||||
with ProcessPoolExecutor(max_workers=os.process_cpu_count()-2) as executor:
|
||||
executor.map(encode_video_frames,img_dirs,temp_paths,fps)
|
||||
|
||||
for img_dir in img_dirs:
|
||||
|
||||
Reference in New Issue
Block a user