Skip to content

feature(zc): add plan diffuser #700

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from 21 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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_normal(dataset.normalizer)

if hasattr(policy, 'set_statistic'):
# useful for setting action bounds for ibc
Expand Down
1 change: 1 addition & 0 deletions ding/model/template/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
from .procedure_cloning import ProcedureCloningMCTS, ProcedureCloningBFS
from .bcq import BCQ
from .edac import QACEnsemble
from .diffusion import GaussianInvDynDiffusion
Loading