Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
ea5174f
1
Parent(s):
c78dc54
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ from safetensors.torch import load_file
|
|
16 |
model_id = 'aipicasso/emi'
|
17 |
auth_token=os.environ["ACCESS_TOKEN"]
|
18 |
adapter_id = "latent-consistency/lcm-lora-sdxl"
|
19 |
-
|
20 |
#scheduler=DPMSolverMultistepScheduler()
|
21 |
|
22 |
#pipe = StableDiffusionXLPipeline.from_pretrained(
|
@@ -33,6 +33,7 @@ pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
|
|
33 |
|
34 |
pipe=pipe.to("cuda")
|
35 |
pipe.load_lora_weights(adapter_id)
|
|
|
36 |
pipe.fuse_lora()
|
37 |
|
38 |
#pipe.enable_freeu(s1=0.9, s2=0.2, b1=1.3, b2=1.4)
|
|
|
16 |
model_id = 'aipicasso/emi'
|
17 |
auth_token=os.environ["ACCESS_TOKEN"]
|
18 |
adapter_id = "latent-consistency/lcm-lora-sdxl"
|
19 |
+
adapter_id_2 = "manual.safetensors"
|
20 |
#scheduler=DPMSolverMultistepScheduler()
|
21 |
|
22 |
#pipe = StableDiffusionXLPipeline.from_pretrained(
|
|
|
33 |
|
34 |
pipe=pipe.to("cuda")
|
35 |
pipe.load_lora_weights(adapter_id)
|
36 |
+
pipe.load_lora_weights(adapter_id_2)
|
37 |
pipe.fuse_lora()
|
38 |
|
39 |
#pipe.enable_freeu(s1=0.9, s2=0.2, b1=1.3, b2=1.4)
|