From 29242bf41dbd7f95de3be0a07fb6b47099955fcb Mon Sep 17 00:00:00 2001 From: bimsarapathiraja Date: Fri, 23 Feb 2024 12:58:01 -0700 Subject: [PATCH] Change images to image. The variable images is not used anywhere --- docs/source/en/using-diffusers/write_own_pipeline.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/en/using-diffusers/write_own_pipeline.md b/docs/source/en/using-diffusers/write_own_pipeline.md index e4de0d2f0fbe..8bd478e4ec10 100644 --- a/docs/source/en/using-diffusers/write_own_pipeline.md +++ b/docs/source/en/using-diffusers/write_own_pipeline.md @@ -273,7 +273,7 @@ Lastly, convert the image to a `PIL.Image` to see your generated image! ```py >>> image = (image / 2 + 0.5).clamp(0, 1).squeeze() >>> image = (image.permute(1, 2, 0) * 255).to(torch.uint8).cpu().numpy() ->>> images = (image * 255).round().astype("uint8") +>>> image = (image * 255).round().astype("uint8") >>> image = Image.fromarray(image) >>> image ```