Spaces:
Paused
Paused
Commit
•
ce3aef8
1
Parent(s):
ceee808
Update app.py
Browse files
app.py
CHANGED
@@ -254,7 +254,8 @@ def run_lora(prompt, image_input, image_strength, cfg_scale, steps, selected_ind
|
|
254 |
with calculateDuration("Unloading LoRA"):
|
255 |
pipe.unload_lora_weights()
|
256 |
pipe_i2i.unload_lora_weights()
|
257 |
-
|
|
|
258 |
# Load LoRA weights with respective scales
|
259 |
lora_names = []
|
260 |
lora_weights = []
|
@@ -281,6 +282,7 @@ def run_lora(prompt, image_input, image_strength, cfg_scale, steps, selected_ind
|
|
281 |
pipe_i2i.set_adapters(lora_names, adapter_weights=lora_weights)
|
282 |
else:
|
283 |
pipe.set_adapters(lora_names, adapter_weights=lora_weights)
|
|
|
284 |
# Set random seed for reproducibility
|
285 |
with calculateDuration("Randomizing seed"):
|
286 |
if randomize_seed:
|
|
|
254 |
with calculateDuration("Unloading LoRA"):
|
255 |
pipe.unload_lora_weights()
|
256 |
pipe_i2i.unload_lora_weights()
|
257 |
+
|
258 |
+
print(pipe.get_active_adapters())
|
259 |
# Load LoRA weights with respective scales
|
260 |
lora_names = []
|
261 |
lora_weights = []
|
|
|
282 |
pipe_i2i.set_adapters(lora_names, adapter_weights=lora_weights)
|
283 |
else:
|
284 |
pipe.set_adapters(lora_names, adapter_weights=lora_weights)
|
285 |
+
print(pipe.get_active_adapters())
|
286 |
# Set random seed for reproducibility
|
287 |
with calculateDuration("Randomizing seed"):
|
288 |
if randomize_seed:
|