Spaces:
Running
on
Zero
Running
on
Zero
alfredplpl
commited on
Commit
•
e0deb99
1
Parent(s):
b1f69aa
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ auth_token=os.environ["ACCESS_TOKEN"]
|
|
17 |
#adapter_id = "latent-consistency/lcm-lora-sdxl"
|
18 |
#adapter_id_2 = "manual.safetensors"
|
19 |
|
20 |
-
scheduler =
|
21 |
|
22 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
23 |
model_id,
|
@@ -37,7 +37,7 @@ pipe=pipe.to("cuda")
|
|
37 |
#pipe.load_lora_weights(adapter_id_2)
|
38 |
#pipe.fuse_lora()
|
39 |
|
40 |
-
|
41 |
#pipe.enable_freeu(s1=0.6, s2=0.4, b1=1.1, b2=1.2)
|
42 |
#pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
43 |
|
|
|
17 |
#adapter_id = "latent-consistency/lcm-lora-sdxl"
|
18 |
#adapter_id_2 = "manual.safetensors"
|
19 |
|
20 |
+
scheduler = EulerAncestralDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler",use_auth_token=auth_token)
|
21 |
|
22 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
23 |
model_id,
|
|
|
37 |
#pipe.load_lora_weights(adapter_id_2)
|
38 |
#pipe.fuse_lora()
|
39 |
|
40 |
+
pipe.enable_freeu(s1=0.9, s2=0.2, b1=1.3, b2=1.4)
|
41 |
#pipe.enable_freeu(s1=0.6, s2=0.4, b1=1.1, b2=1.2)
|
42 |
#pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
43 |
|