dezzman commited on
Commit
077767b
·
verified ·
1 Parent(s): 06c7052

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def get_lora_sd_pipeline(
25
  if base_model_name_or_path is None:
26
  raise ValueError("Please specify the base model name or path")
27
 
28
- pipe = StableDiffusionPipeline.from_pretrained(base_model_name_or_path, torch_dtype=dtype).to(device)
29
  pipe.unet = PeftModel.from_pretrained(pipe.unet, unet_sub_dir, adapter_name=adapter_name)
30
 
31
  if os.path.exists(text_encoder_sub_dir):
 
25
  if base_model_name_or_path is None:
26
  raise ValueError("Please specify the base model name or path")
27
 
28
+ pipe = StableDiffusionPipeline.from_pretrained(base_model_name_or_path, torch_dtype=dtype)
29
  pipe.unet = PeftModel.from_pretrained(pipe.unet, unet_sub_dir, adapter_name=adapter_name)
30
 
31
  if os.path.exists(text_encoder_sub_dir):