mirror of
https://github.com/huggingface/lerobot.git
synced 2026-06-04 12:51:27 +00:00
more video prefetch
This commit is contained in:
@@ -258,7 +258,7 @@ def train(cfg: TrainPipelineConfig):
|
||||
pin_memory=device.type == "cuda",
|
||||
drop_last=False,
|
||||
persistent_workers=cfg.num_workers > 0, # Keep workers alive between epochs
|
||||
prefetch_factor=6, # More aggressive prefetching for video
|
||||
prefetch_factor=12, # Maximum prefetch for video pipeline
|
||||
timeout=30, # Prevent hanging on video decode errors
|
||||
)
|
||||
dl_iter = cycle(dataloader)
|
||||
|
||||
Reference in New Issue
Block a user