Spaces:
Runtime error
Runtime error
Commit
·
4823cf7
1
Parent(s):
c50baf3
update: app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,6 @@ if torch.cuda.is_available():
|
|
18 |
pipeline = DiffusionPipeline.from_pretrained(
|
19 |
"stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16
|
20 |
).to(device)
|
21 |
-
pipeline.unet = torch.compile(pipeline.unet, mode="reduce-overhead", fullgraph=True)
|
22 |
|
23 |
if torch.cuda.is_available():
|
24 |
pipeline.enable_xformers_memory_efficient_attention()
|
|
|
18 |
pipeline = DiffusionPipeline.from_pretrained(
|
19 |
"stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16
|
20 |
).to(device)
|
|
|
21 |
|
22 |
if torch.cuda.is_available():
|
23 |
pipeline.enable_xformers_memory_efficient_attention()
|