From f539497ab451fdab0827de9b3f0f0fa885a610f2 Mon Sep 17 00:00:00 2001 From: bimsarapathiraja Date: Thu, 7 Mar 2024 11:04:31 -0700 Subject: [PATCH] Remove the line. Using it create wrong output (#7075) Co-authored-by: Sayak Paul --- docs/source/en/using-diffusers/write_own_pipeline.md | 1 - 1 file changed, 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 8bd478e4ec..6d766d0ebb 100644 --- a/docs/source/en/using-diffusers/write_own_pipeline.md +++ b/docs/source/en/using-diffusers/write_own_pipeline.md @@ -273,7 +273,6 @@ 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() ->>> image = (image * 255).round().astype("uint8") >>> image = Image.fromarray(image) >>> image ```