planet_world_model(pretrained: bool = False, overrides: object = {})Construct PlaNet with its variational objective.
Same trunk as planet, wrapped with the bound of Hafner et al.,
2019 — reconstruction and reward likelihoods against a KL between the
posterior and the dynamics' own prior, floored at free_nats.
Model Size
Parameters
pretrainedbool= FalseNo weights are published for this family; passing
True raises.**overridesobject= {}Optional
PlaNetConfig field overrides. free_nats and
kl_weight shape the divergence term; action_dim is set by
the environment.Returns
PlaNetForWorldModelingThe trunk plus the objective.
Notes
Reference: Hafner, Lillicrap, Fischer, Villegas, Ha, Lee, and Davidson, "Learning Latent Dynamics for Planning from Pixels", ICML, 2019 (arXiv:1811.04551).
Training objective:
Examples
>>> from lucid.models.generative.planet import planet_world_model
>>> model = planet_world_model(action_dim=6).eval()
>>> model.config.free_nats
3.0