1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Remove the line. Using it create wrong output (#7075)

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
This commit is contained in:
bimsarapathiraja
2024-03-07 11:04:31 -07:00
committed by GitHub
parent 39dfb7abbd
commit f539497ab4

View File

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