Unverified Commit 17546020 authored by lookas's avatar lookas Committed by GitHub
Browse files

Fix #6409 (#6410)



* Update value_guided_sampling.py

Fix #6409

* Comply code style

---------
Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
parent 8a366b83
......@@ -49,10 +49,9 @@ class ValueGuidedRLPipeline(DiffusionPipeline):
env,
):
super().__init__()
self.value_function = value_function
self.unet = unet
self.scheduler = scheduler
self.env = env
self.register_modules(value_function=value_function, unet=unet, scheduler=scheduler, env=env)
self.data = env.get_dataset()
self.means = {}
for key in self.data.keys():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment