JacobLinCool commited on
Commit
c447cda
1 Parent(s): b05b11d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -12,7 +12,9 @@ model_id = "stabilityai/stable-diffusion-xl-base-1.0"
12
 
13
  pipe = DiffusionPipeline.from_pretrained(model_id, variant="fp16")
14
  pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
15
- pipe.load_lora_weights("JacobLinCool/sdxl-lora-gdsc-1")
 
 
16
  pipe.to(device=DEVICE, dtype=torch.float16)
17
 
18
 
 
12
 
13
  pipe = DiffusionPipeline.from_pretrained(model_id, variant="fp16")
14
  pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
15
+ pipe.load_lora_weights("jasperai/flash-sdxl", adapter_name="lora")
16
+ pipe.load_lora_weights("JacobLinCool/sdxl-lora-gdsc-1", adapter_name="gdsc")
17
+ pipe.set_adapters(["lora", "gdsc"], adapter_weights=[1.0, 1.0])
18
  pipe.to(device=DEVICE, dtype=torch.float16)
19
 
20