JacobLinCool commited on
Commit
5401753
1 Parent(s): 45bb589

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,12 +8,12 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
8
 
9
  if torch.cuda.is_available():
10
  torch.cuda.max_memory_allocated(device=device)
11
- pipe = DiffusionPipeline.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16", use_safetensors=True)
12
  pipe.load_lora_weights("JacobLinCool/sdxl-lora-gdsc-1")
13
  # pipe.enable_xformers_memory_efficient_attention()
14
  pipe = pipe.to(device)
15
  else:
16
- pipe = DiffusionPipeline.from_pretrained("stabilityai/sdxl-turbo", use_safetensors=True)
17
  pipe.load_lora_weights("JacobLinCool/sdxl-lora-gdsc-1")
18
  pipe = pipe.to(device)
19
 
 
8
 
9
  if torch.cuda.is_available():
10
  torch.cuda.max_memory_allocated(device=device)
11
+ pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, variant="fp16", use_safetensors=True)
12
  pipe.load_lora_weights("JacobLinCool/sdxl-lora-gdsc-1")
13
  # pipe.enable_xformers_memory_efficient_attention()
14
  pipe = pipe.to(device)
15
  else:
16
+ pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", use_safetensors=True)
17
  pipe.load_lora_weights("JacobLinCool/sdxl-lora-gdsc-1")
18
  pipe = pipe.to(device)
19