akaUNik commited on
Commit
eafd0e7
·
verified ·
1 Parent(s): 35880ab
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -40,7 +40,8 @@ def load_pipeline(model_id: str):
40
  pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch_dtype)
41
  # Load the LoRA weights into the U-Net.
42
  # This assumes that load_attn_procs loads the LoRA weights.
43
- pipe.unet.load_attn_procs(model_id)
 
44
  else:
45
  pipe = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch_dtype)
46
 
 
40
  pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch_dtype)
41
  # Load the LoRA weights into the U-Net.
42
  # This assumes that load_attn_procs loads the LoRA weights.
43
+ # pipe.unet.load_attn_procs(model_id)
44
+ pipe.load_lora_weights(model_id)
45
  else:
46
  pipe = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch_dtype)
47