Update app.py
Browse files
app.py
CHANGED
|
@@ -230,9 +230,12 @@ def load_and_prepare_model(model_id):
|
|
| 230 |
#pipe.vae.to(torch.bfloat16)
|
| 231 |
#pipe.to(device, torch.bfloat16)
|
| 232 |
#del pipeX
|
|
|
|
|
|
|
| 233 |
pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/skin_texture_style_v4.safetensors", adapter_name="skin")
|
| 234 |
pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/epicNewPhoto.safetensors", adapter_name="photo")
|
| 235 |
-
pipe.set_adapters(["skin", "photo"], adapter_weights=[0.
|
|
|
|
| 236 |
|
| 237 |
#sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="dpmsolver++")
|
| 238 |
#sched = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, beta_schedule="linear", algorithm_type="dpmsolver++")
|
|
|
|
| 230 |
#pipe.vae.to(torch.bfloat16)
|
| 231 |
#pipe.to(device, torch.bfloat16)
|
| 232 |
#del pipeX
|
| 233 |
+
|
| 234 |
+
pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="Fantasy_World_XL.safetensors", adapter_name="fantasy")
|
| 235 |
pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/skin_texture_style_v4.safetensors", adapter_name="skin")
|
| 236 |
pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/epicNewPhoto.safetensors", adapter_name="photo")
|
| 237 |
+
#pipe.set_adapters(["skin", "photo", "fantasy"], adapter_weights=[0.5, 0.5, 0.5])
|
| 238 |
+
pipe.set_adapters(["skin", "photo", "fantasy"], adapter_weights=[1.0, 1.0, 1.0])
|
| 239 |
|
| 240 |
#sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="dpmsolver++")
|
| 241 |
#sched = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, beta_schedule="linear", algorithm_type="dpmsolver++")
|