Spaces:
Runtime error
Runtime error
Commit
•
9cfde10
1
Parent(s):
5fb94fd
Update app.py
Browse files
app.py
CHANGED
@@ -252,6 +252,9 @@ def run_lora(face_image, prompt, negative, lora_scale, selected_state, face_stre
|
|
252 |
full_path_lora = state_dicts[repo_name]["saved_name"]
|
253 |
loaded_state_dict = copy.deepcopy(state_dicts[repo_name]["state_dict"])
|
254 |
cross_attention_kwargs = None
|
|
|
|
|
|
|
255 |
if last_lora != repo_name:
|
256 |
if(last_fused):
|
257 |
pipe.unfuse_lora()
|
|
|
252 |
full_path_lora = state_dicts[repo_name]["saved_name"]
|
253 |
loaded_state_dict = copy.deepcopy(state_dicts[repo_name]["state_dict"])
|
254 |
cross_attention_kwargs = None
|
255 |
+
print("Last LoRA: ", last_lora)
|
256 |
+
print("Current LoRA: ", repo_name)
|
257 |
+
print("Last fused: ", last_fused)
|
258 |
if last_lora != repo_name:
|
259 |
if(last_fused):
|
260 |
pipe.unfuse_lora()
|