Update app.py
Browse files
app.py
CHANGED
@@ -315,8 +315,9 @@ def run_lora(prompt, image_input, image_strength, cfg_scale, steps, selected_ind
|
|
315 |
selected_loras = [loras_state[idx] for idx in selected_indices]
|
316 |
|
317 |
# Initialize transformer_state_dict
|
318 |
-
|
319 |
-
|
|
|
320 |
base_weight_param = transformer_state_dict.get(base_param_name, None)
|
321 |
if base_weight_param is None:
|
322 |
print(f"Warning: {base_param_name} not found in transformer_state_dict.")
|
|
|
315 |
selected_loras = [loras_state[idx] for idx in selected_indices]
|
316 |
|
317 |
# Initialize transformer_state_dict
|
318 |
+
transformer_state_dict = pipe.transformer.state_dict() # Ensure this is correctly defined
|
319 |
+
|
320 |
+
base_param_name = "weight"
|
321 |
base_weight_param = transformer_state_dict.get(base_param_name, None)
|
322 |
if base_weight_param is None:
|
323 |
print(f"Warning: {base_param_name} not found in transformer_state_dict.")
|