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
46
46
``` python
47
47
# make sure you're logged in with `huggingface-cli login`
48
48
from torch import autocast
49
+ import torch
49
50
from diffusers import StableDiffusionPipeline, LMSDiscreteScheduler
50
51
51
52
lms = LMSDiscreteScheduler(
@@ -77,6 +78,7 @@ The `StableDiffusionImg2ImgPipeline` lets you pass a text prompt and an initial
77
78
``` python
78
79
from torch import autocast
79
80
import requests
81
+ import torch
80
82
from PIL import Image
81
83
from io import BytesIO
82
84
@@ -116,6 +118,7 @@ The `StableDiffusionInpaintPipeline` lets you edit specific parts of an image by
116
118
from io import BytesIO
117
119
118
120
from torch import autocast
121
+ import torch
119
122
import requests
120
123
import PIL
121
124
You can’t perform that action at this time.
0 commit comments