radames commited on
Commit
dc27de6
1 Parent(s): de9d198

add lora mixer

Browse files
Files changed (1) hide show
  1. app.py +11 -1
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
- token=HF_TOKEN,
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],