Spaces:
Running
Running
Update app.py
Browse files
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)
|
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):
|