Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ main_pipe = StableDiffusionControlNetPipeline.from_pretrained(
|
|
30 |
vae=vae,
|
31 |
safety_checker=None,
|
32 |
torch_dtype=torch.float16,
|
33 |
-
).to("
|
34 |
#main_pipe.unet = torch.compile(main_pipe.unet, mode="reduce-overhead", fullgraph=True)
|
35 |
#main_pipe.unet.to(memory_format=torch.channels_last)
|
36 |
#main_pipe.unet = torch.compile(main_pipe.unet, mode="reduce-overhead", fullgraph=True)
|
|
|
30 |
vae=vae,
|
31 |
safety_checker=None,
|
32 |
torch_dtype=torch.float16,
|
33 |
+
).to("cpu")
|
34 |
#main_pipe.unet = torch.compile(main_pipe.unet, mode="reduce-overhead", fullgraph=True)
|
35 |
#main_pipe.unet.to(memory_format=torch.channels_last)
|
36 |
#main_pipe.unet = torch.compile(main_pipe.unet, mode="reduce-overhead", fullgraph=True)
|