Skip to content

Commit d38b4d9

Browse files
mu94-csldg845
authored andcommitted
Update stable_diffusion.mdx (huggingface#3310)
fixed import statement
1 parent 6e8d065 commit d38b4d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/en/stable_diffusion.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def get_inputs(batch_size=1):
153153
You'll also need a function that'll display each batch of images:
154154

155155
```python
156-
from PIL import image
156+
from PIL import Image
157157

158158

159159
def image_grid(imgs, rows=2, cols=2):
@@ -268,4 +268,4 @@ In this tutorial, you learned how to optimize a [`DiffusionPipeline`] for comput
268268

269269
- Enable [xFormers](./optimization/xformers) memory efficient attention mechanism for faster speed and reduced memory consumption.
270270
- 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.
271-
- Many optimization techniques for inference are also included in this memory and speed [guide](./optimization/fp16), such as memory offloading.
271+
- Many optimization techniques for inference are also included in this memory and speed [guide](./optimization/fp16), such as memory offloading.

0 commit comments

Comments
 (0)