Diffuser Value-guided Planning (original) (raw)

Using Diffusers for reinforcement learning

Support for one RL model and related pipelines is included in the experimental source of diffusers. More models and examples coming soon!

You can run the model from Planning with Diffusion for Flexible Behavior Synthesis with Diffusers. The script is located in the RL Examples folder.

Or, run this example in Colab Open In Colab

class diffusers.experimental.ValueGuidedRLPipeline

< source >

( value_function: UNet1DModel unet: UNet1DModel scheduler: DDPMScheduler env )

Parameters

This model inherits from DiffusionPipeline. Check the superclass documentation for the generic methods the library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.) Pipeline for sampling actions from a diffusion model trained to predict sequences of states.

Original implementation inspired by this repository: https://github.com/jannerm/diffuser.