Keltezaa commited on
Commit
b88ccb2
·
verified ·
1 Parent(s): 7952b74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -314,6 +314,11 @@ def run_lora(prompt, image_input, image_strength, cfg_scale, steps, selected_ind
314
 
315
  selected_loras = [loras_state[idx] for idx in selected_indices]
316
 
 
 
 
 
 
317
  # Build the prompt with trigger words
318
  prepends = []
319
  appends = []
 
314
 
315
  selected_loras = [loras_state[idx] for idx in selected_indices]
316
 
317
+ base_weight_param = transformer_state_dict.get(base_param_name, None)
318
+ if base_weight_param is None:
319
+ print(f"Warning: {base_param_name} not found in transformer_state_dict.")
320
+
321
+
322
  # Build the prompt with trigger words
323
  prepends = []
324
  appends = []