Skip to content

Commit c587bec

Browse files
authored
fix a small typo in pipeline_ddpm.py (huggingface#948)
one small typo in pipeline_ddpm.py just a small typo in one comment
1 parent b8c2aa1 commit c587bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pipelines/ddpm/pipeline_ddpm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __call__(
7979
# 1. predict noise model_output
8080
model_output = self.unet(image, t).sample
8181

82-
# 2. compute previous image: x_t -> t_t-1
82+
# 2. compute previous image: x_t -> x_t-1
8383
image = self.scheduler.step(model_output, t, image, generator=generator).prev_sample
8484

8585
image = (image / 2 + 0.5).clamp(0, 1)

0 commit comments

Comments
 (0)