script is located in the RL Examples folder.
Or, run this example in Colab 

class diffusers.experimental.ValueGuidedRLPipeline

<
source
>
(
value_function: UNet1DModel
unet: UNet1DModel
scheduler: DDPMScheduler
env

)


Parameters 

value_function (UNet1DModel) — A specialized UNet for fine-tuning trajectories base on reward.


unet (UNet1DModel) — U-Net architecture to denoise the encoded trajectories.


scheduler (SchedulerMixin) —
A schedu