"src/vscode:/vscode.git/clone" did not exist on "da8632cafe0f9b3dc3179ecc202ea894c73c46db"
Unverified Commit 0ccad2ad authored by Umar's avatar Umar Committed by GitHub
Browse files

Update stable_diffusion.mdx (#3310)

fixed import statement
parent efc48da2
......@@ -153,7 +153,7 @@ def get_inputs(batch_size=1):
You'll also need a function that'll display each batch of images:
```python
from PIL import image
from PIL import Image
def image_grid(imgs, rows=2, cols=2):
......@@ -268,4 +268,4 @@ In this tutorial, you learned how to optimize a [`DiffusionPipeline`] for comput
- Enable [xFormers](./optimization/xformers) memory efficient attention mechanism for faster speed and reduced memory consumption.
- Learn how in [PyTorch 2.0](./optimization/torch2.0), [`torch.compile`](https://pytorch.org/docs/stable/generated/torch.compile.html) can yield 2-9% faster inference speed.
- Many optimization techniques for inference are also included in this memory and speed [guide](./optimization/fp16), such as memory offloading.
\ No newline at end of file
- Many optimization techniques for inference are also included in this memory and speed [guide](./optimization/fp16), such as memory offloading.
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