Keltezaa commited on
Commit
eb0bb86
Β·
verified Β·
1 Parent(s): be73129

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -515,12 +515,12 @@ def run_lora(prompt, cfg_scale, steps, selected_indices, lora_scale_1, lora_scal
515
  weight_name = lora.get("weights")
516
  print(f"Lora Path: {lora_path}")
517
  ## pipe_to_use = pipe_i2i if image_input is not None else pipe
518
- pipe_to_use.load_lora_weights(
519
- lora_path,
520
- weight_name=weight_name if weight_name else None,
521
- low_cpu_mem_usage=True,
522
- adapter_name=lora_name
523
- )
524
  print("Loaded LoRAs:", lora_names)
525
  print("Adapter weights:", lora_weights)
526
  ## if image_input is not None:
 
515
  weight_name = lora.get("weights")
516
  print(f"Lora Path: {lora_path}")
517
  ## pipe_to_use = pipe_i2i if image_input is not None else pipe
518
+ ## pipe_to_use.load_lora_weights(
519
+ ## lora_path,
520
+ ## weight_name=weight_name if weight_name else None,
521
+ ## low_cpu_mem_usage=True,
522
+ ## adapter_name=lora_name
523
+ ## )
524
  print("Loaded LoRAs:", lora_names)
525
  print("Adapter weights:", lora_weights)
526
  ## if image_input is not None: