Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,8 @@ pipe = StableDiffusionLDM3DPipeline.from_pretrained(
|
|
16 |
# , safety_checker=None
|
17 |
)
|
18 |
pipe.to(device)
|
19 |
-
|
|
|
20 |
pipe.enable_model_cpu_offload()
|
21 |
|
22 |
|
|
|
16 |
# , safety_checker=None
|
17 |
)
|
18 |
pipe.to(device)
|
19 |
+
if device == "cuda":
|
20 |
+
pipe.enable_xformers_memory_efficient_attention()
|
21 |
pipe.enable_model_cpu_offload()
|
22 |
|
23 |
|