Spaces:
Runtime error
Runtime error
Add pipe.to("cuda")
Browse files
app.py
CHANGED
@@ -37,7 +37,9 @@ def predict(image_input, prompt, negative_prompt, sd_models_dropdown):
|
|
37 |
controlnet=controlnet,
|
38 |
torch_dtype=torch.float16
|
39 |
)
|
40 |
-
|
|
|
|
|
41 |
# speed up diffusion process with faster scheduler and memory optimization
|
42 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
43 |
|
|
|
37 |
controlnet=controlnet,
|
38 |
torch_dtype=torch.float16
|
39 |
)
|
40 |
+
|
41 |
+
pipe = pipe.to("cuda")
|
42 |
+
|
43 |
# speed up diffusion process with faster scheduler and memory optimization
|
44 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
45 |
|