Unverified Commit 2d35f673 authored by Chenguo Lin's avatar Chenguo Lin Committed by GitHub
Browse files

fix a small typo in pipeline_ddpm.py (#948)

one small typo in pipeline_ddpm.py

just a small typo in one comment
parent 9bca4029
......@@ -79,7 +79,7 @@ class DDPMPipeline(DiffusionPipeline):
# 1. predict noise model_output
model_output = self.unet(image, t).sample
# 2. compute previous image: x_t -> t_t-1
# 2. compute previous image: x_t -> x_t-1
image = self.scheduler.step(model_output, t, image, generator=generator).prev_sample
image = (image / 2 + 0.5).clamp(0, 1)
......
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