mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-23 17:56:07 +00:00
pass stats
This commit is contained in:
@@ -433,6 +433,9 @@ def make_policy(
|
|||||||
cfg.input_features = {key: ft for key, ft in features.items() if key not in cfg.output_features}
|
cfg.input_features = {key: ft for key, ft in features.items() if key not in cfg.output_features}
|
||||||
kwargs["config"] = cfg
|
kwargs["config"] = cfg
|
||||||
|
|
||||||
|
# Pass dataset_stats to the policy if available (needed for some policies like SARM)
|
||||||
|
if ds_meta is not None and hasattr(ds_meta, 'stats'):
|
||||||
|
kwargs["dataset_stats"] = ds_meta.stats
|
||||||
|
|
||||||
if cfg.pretrained_path:
|
if cfg.pretrained_path:
|
||||||
# Load a pretrained policy and override the config if needed (for example, if there are inference-time
|
# Load a pretrained policy and override the config if needed (for example, if there are inference-time
|
||||||
|
|||||||
Reference in New Issue
Block a user