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 ```