Unverified Commit 66a7160f authored by bimsarapathiraja's avatar bimsarapathiraja Committed by GitHub
Browse files

Change images to image. The variable images is not used anywhere (#7074)

parent f05ee56b
...@@ -273,7 +273,7 @@ Lastly, convert the image to a `PIL.Image` to see your generated image! ...@@ -273,7 +273,7 @@ Lastly, convert the image to a `PIL.Image` to see your generated image!
```py ```py
>>> image = (image / 2 + 0.5).clamp(0, 1).squeeze() >>> image = (image / 2 + 0.5).clamp(0, 1).squeeze()
>>> image = (image.permute(1, 2, 0) * 255).to(torch.uint8).cpu().numpy() >>> 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 = Image.fromarray(image)
>>> image >>> image
``` ```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment