Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
2522cf4
1
Parent(s):
f1daac8
add lora support
Browse files
app.py
CHANGED
|
@@ -183,7 +183,7 @@ def generate_image_with_steps(prompt
|
|
| 183 |
, use_afs=True)
|
| 184 |
if not need_lora:
|
| 185 |
pipe.set_adapters(["spo", "aqm"], adapter_weights=[0.0, 0.0])
|
| 186 |
-
elif num_inference_steps > 6:
|
| 187 |
pipe.set_adapters(["spo", "aqm"], adapter_weights=[0.7, 0.7])
|
| 188 |
else:
|
| 189 |
pipe.set_adapters(["spo", "aqm"], adapter_weights=[0.25, 0.25])
|
|
|
|
| 183 |
, use_afs=True)
|
| 184 |
if not need_lora:
|
| 185 |
pipe.set_adapters(["spo", "aqm"], adapter_weights=[0.0, 0.0])
|
| 186 |
+
elif num_inference_steps > 6 and num_inference_steps <= 8:
|
| 187 |
pipe.set_adapters(["spo", "aqm"], adapter_weights=[0.7, 0.7])
|
| 188 |
else:
|
| 189 |
pipe.set_adapters(["spo", "aqm"], adapter_weights=[0.25, 0.25])
|