ameerazam08 commited on
Commit
47f6862
·
verified ·
1 Parent(s): 9861c33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,8 +24,8 @@ def generate_image(image, prompt, guidance_scale, num_steps, lora_name):
24
  # Load and fuse base LoRA weights
25
 
26
  # Load selected LoRA effect if not using the pretrained base model
27
- pipeline.load_lora_weights("nicolaus-huang/PhotoDoodle", weight_name=f"{lora_name}.safetensors")
28
- pipeline.fuse_lora()
29
 
30
  height=768
31
  width=512
 
24
  # Load and fuse base LoRA weights
25
 
26
  # Load selected LoRA effect if not using the pretrained base model
27
+ if args.lora_name != 'pretrained':
28
+ pipeline.load_lora_weights("nicolaus-huang/PhotoDoodle", weight_name=f"{lora_name}.safetensors")
29
 
30
  height=768
31
  width=512