mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-23 20:50:02 +00:00
add decode logging
This commit is contained in:
@@ -295,13 +295,7 @@ def train(cfg: TrainPipelineConfig):
|
|||||||
torch.backends.cuda.matmul.allow_tf32 = True
|
torch.backends.cuda.matmul.allow_tf32 = True
|
||||||
|
|
||||||
logging.info("Creating dataset")
|
logging.info("Creating dataset")
|
||||||
# Pass video backend to dataset for RLearN optimization
|
dataset = make_dataset(cfg)
|
||||||
dataset_kwargs = {}
|
|
||||||
if getattr(cfg.policy, "type", None) == "rlearn" and hasattr(cfg.policy, "video_backend"):
|
|
||||||
dataset_kwargs["video_backend"] = cfg.policy.video_backend
|
|
||||||
logging.info(f"Using video backend: {cfg.policy.video_backend}")
|
|
||||||
|
|
||||||
dataset = make_dataset(cfg, **dataset_kwargs)
|
|
||||||
|
|
||||||
# Add video decoding timing for RLearN debugging
|
# Add video decoding timing for RLearN debugging
|
||||||
if getattr(cfg.policy, "type", None) == "rlearn":
|
if getattr(cfg.policy, "type", None) == "rlearn":
|
||||||
|
|||||||
Reference in New Issue
Block a user