fffiloni commited on
Commit
9f04bd1
1 Parent(s): b30a58a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- #pipe.to("cuda")
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()