Skip to content

Commit

Permalink
Change images to image. The variable images is not used anywhere (hug…
Browse files Browse the repository at this point in the history
  • Loading branch information
bimsarapathiraja authored Feb 23, 2024
1 parent f05ee56 commit 66a7160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/en/using-diffusers/write_own_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit 66a7160

Please sign in to comment.