Spaces:
Runtime error
Runtime error
pipeline to cuda
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ pipe = StableDiffusionControlNetPipeline.from_pretrained(
|
|
28 |
"./models/wd-1-5-b2",
|
29 |
controlnet=cnet,
|
30 |
torch_dtype=torch.float16,
|
31 |
-
)
|
32 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
33 |
#pipe.enable_model_cpu_offload()
|
34 |
#pipe.enable_xformers_memory_efficient_attention()
|
|
|
28 |
"./models/wd-1-5-b2",
|
29 |
controlnet=cnet,
|
30 |
torch_dtype=torch.float16,
|
31 |
+
).to("cuda")
|
32 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
33 |
#pipe.enable_model_cpu_offload()
|
34 |
#pipe.enable_xformers_memory_efficient_attention()
|