update if statement load processor with dataset stats

This commit is contained in:
Pepijn
2025-09-25 09:07:11 +02:00
parent f53fa00952
commit 8b4a599a25
+1 -1
View File
@@ -180,7 +180,7 @@ def train(cfg: TrainPipelineConfig):
# Create processors - only provide dataset_stats if not resuming from saved processors
processor_kwargs = {}
if not (cfg.resume and cfg.policy.pretrained_path):
if (cfg.policy.pretrained_path and not cfg.resume) or not cfg.policy.pretrained_path:
# Only provide dataset_stats when not resuming from saved processor state
processor_kwargs["dataset_stats"] = dataset.meta.stats