Skip to content

Commit

Permalink
feature(zc): add plan diffuser (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaParaZz1 committed Oct 26, 2023
1 parent 88ce090 commit 8834c21
Show file tree
Hide file tree
Showing 22 changed files with 3,211 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ding/entry/serial_entry_offline.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def serial_pipeline_offline(
evaluator_env.seed(cfg.seed, dynamic_seed=False)
set_pkg_seed(cfg.seed, use_cuda=cfg.policy.cuda)
policy = create_policy(cfg.policy, model=model, enable_field=['learn', 'eval'])
if cfg.policy.collect.data_type == 'diffuser_traj':
policy.init_data_normalizer(dataset.normalizer)

if hasattr(policy, 'set_statistic'):
# useful for setting action bounds for ibc
Expand Down
Loading

0 comments on commit 8834c21

Please sign in to comment.