From 2d35f6733a2d698e8917896071444a5923993ae7 Mon Sep 17 00:00:00 2001 From: Chenguo Lin Date: Mon, 24 Oct 2022 17:18:32 +0800 Subject: [PATCH] fix a small typo in pipeline_ddpm.py (#948) one small typo in pipeline_ddpm.py just a small typo in one comment --- src/diffusers/pipelines/ddpm/pipeline_ddpm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffusers/pipelines/ddpm/pipeline_ddpm.py b/src/diffusers/pipelines/ddpm/pipeline_ddpm.py index aae29737..5842a6d2 100644 --- a/src/diffusers/pipelines/ddpm/pipeline_ddpm.py +++ b/src/diffusers/pipelines/ddpm/pipeline_ddpm.py @@ -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)