File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ You need to accept the model license before downloading or using the Stable Diff
4646``` python
4747# make sure you're logged in with `huggingface-cli login`
4848from torch import autocast
49+ import torch
4950from diffusers import StableDiffusionPipeline, LMSDiscreteScheduler
5051
5152lms = LMSDiscreteScheduler(
@@ -77,6 +78,7 @@ The `StableDiffusionImg2ImgPipeline` lets you pass a text prompt and an initial
7778``` python
7879from torch import autocast
7980import requests
81+ import torch
8082from PIL import Image
8183from io import BytesIO
8284
@@ -116,6 +118,7 @@ The `StableDiffusionInpaintPipeline` lets you edit specific parts of an image by
116118from io import BytesIO
117119
118120from torch import autocast
121+ import torch
119122import requests
120123import PIL
121124
You can’t perform that action at this time.
0 commit comments