mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-16 09:09:48 +00:00
refactor(train): Update preprocessor initialization to include dataset statistics
This commit is contained in:
committed by
Steven Palma
parent
f14ac5d486
commit
fc74001202
@@ -140,7 +140,9 @@ def train(cfg: TrainPipelineConfig):
|
||||
cfg=cfg.policy,
|
||||
ds_meta=dataset.meta,
|
||||
)
|
||||
preprocessor, _ = make_processor(cfg.policy, cfg.policy.pretrained_path)
|
||||
preprocessor, _ = make_processor(
|
||||
policy_cfg=cfg.policy, pretrained_path=cfg.policy.pretrained_path, dataset_stats=dataset.meta.stats
|
||||
)
|
||||
|
||||
logging.info("Creating optimizer and scheduler")
|
||||
optimizer, lr_scheduler = make_optimizer_and_scheduler(cfg, policy)
|
||||
|
||||
Reference in New Issue
Block a user