From 78c20ce73167061c07283e7f6cc56c7cd53f24df Mon Sep 17 00:00:00 2001 From: Brett Kuprel Date: Fri, 8 Jul 2022 05:59:06 -0400 Subject: [PATCH] update readme --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fee209a..3729e75 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,15 @@ images = model.generate_images( ) ``` -Note: you will have to move the images to the cpu and convert to numpy, e.g. `images = images.to('cpu').detach().numpy()`. Then image $i$ can be coverted to a PIL.Image `image = Image.fromarray(images[i])`, and saved with its `save` method `image.save('image.png')`. +Note: you will have to move the images to the cpu and convert to numpy, e.g. +```python +images = images.to('cpu').detach().numpy() +``` +Then image $i$ can be coverted to a PIL.Image +```python +image = Image.fromarray(images[i]) +``` +and saved with its `save` method `image.save('image.png')`. ### Interactive