Spaces:
Sleeping
Sleeping
weight_name="adapter_model.safetensors"
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def load_pipeline(model_id: str):
|
|
| 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 |
|
|
|
|
| 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, weight_name="adapter_model.safetensors")
|
| 45 |
else:
|
| 46 |
pipe = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch_dtype)
|
| 47 |
|