Spaces:
Runtime error
Runtime error
add lora mixer
Browse files
app.py
CHANGED
@@ -61,9 +61,19 @@ pipe.load_lora_weights(
|
|
61 |
"lcm-sd/lcm-sdxl-lora",
|
62 |
weight_name="lcm_sdxl_lora.safetensors",
|
63 |
adapter_name="lcm",
|
64 |
-
|
65 |
)
|
66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
compel_proc = Compel(
|
68 |
tokenizer=[pipe.tokenizer, pipe.tokenizer_2],
|
69 |
text_encoder=[pipe.text_encoder, pipe.text_encoder_2],
|
|
|
61 |
"lcm-sd/lcm-sdxl-lora",
|
62 |
weight_name="lcm_sdxl_lora.safetensors",
|
63 |
adapter_name="lcm",
|
64 |
+
use_auth_token=HF_TOKEN,
|
65 |
)
|
66 |
|
67 |
+
# Load papercut LoRA
|
68 |
+
pipe.load_lora_weights(
|
69 |
+
"TheLastBen/Papercut_SDXL",
|
70 |
+
weight_name="papercut.safetensors",
|
71 |
+
adapter_name="papercut",
|
72 |
+
)
|
73 |
+
|
74 |
+
# Mix the LoRAs
|
75 |
+
pipe.set_adapters(["lcm", "papercut"], adapter_weights=[1.0, 0.8])
|
76 |
+
|
77 |
compel_proc = Compel(
|
78 |
tokenizer=[pipe.tokenizer, pipe.tokenizer_2],
|
79 |
text_encoder=[pipe.text_encoder, pipe.text_encoder_2],
|