From 8b7cb962a56fb9ca5783feed605c895b3abdf7fa Mon Sep 17 00:00:00 2001 From: Patrick von Platen Date: Tue, 13 Dec 2022 17:01:18 +0000 Subject: [PATCH] make style --- examples/community/one_step_unet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/community/one_step_unet.py b/examples/community/one_step_unet.py index 17107ca6..f3eaf1e0 100755 --- a/examples/community/one_step_unet.py +++ b/examples/community/one_step_unet.py @@ -18,7 +18,7 @@ class UnetSchedulerOneForwardPipeline(DiffusionPipeline): model_output = self.unet(image, timestep).sample scheduler_output = self.scheduler.step(model_output, timestep, image).prev_sample - + result = scheduler_output - scheduler_output + torch.ones_like(scheduler_output) return result