Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ from diffusers import DiffusionPipeline
|
|
9 |
import torch
|
10 |
|
11 |
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, use_safetensors=True, variant="fp16")
|
12 |
-
|
13 |
-
pipe.enable_model_cpu_offload()
|
14 |
|
15 |
# if using torch < 2.0
|
16 |
# pipe.enable_xformers_memory_efficient_attention()
|
|
|
9 |
import torch
|
10 |
|
11 |
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, use_safetensors=True, variant="fp16")
|
12 |
+
pipe.to("cuda")
|
13 |
+
#pipe.enable_model_cpu_offload()
|
14 |
|
15 |
# if using torch < 2.0
|
16 |
# pipe.enable_xformers_memory_efficient_attention()
|