Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -151,7 +151,8 @@ def load_and_prepare_model():
|
|
151 |
#'ford442/RealVisXL_V5.0_BF16',
|
152 |
#'ford442/Juggernaut-XI-v11-fp32',
|
153 |
# 'SG161222/RealVisXL_V5.0',
|
154 |
-
'John6666/uber-realistic-porn-merge-
|
|
|
155 |
#'John6666/uber-realistic-porn-merge-xl-urpmxl-v6final-sdxl',
|
156 |
#torch_dtype=torch.bfloat16,
|
157 |
add_watermarker=False,
|
@@ -231,10 +232,11 @@ def load_and_prepare_model():
|
|
231 |
#pipe.to(device, torch.bfloat16)
|
232 |
#del pipeX
|
233 |
|
234 |
-
pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/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.75, 0.25, 0.5])
|
|
|
238 |
|
239 |
#sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="dpmsolver++")
|
240 |
#sched = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, beta_schedule="linear", algorithm_type="dpmsolver++")
|
|
|
151 |
#'ford442/RealVisXL_V5.0_BF16',
|
152 |
#'ford442/Juggernaut-XI-v11-fp32',
|
153 |
# 'SG161222/RealVisXL_V5.0',
|
154 |
+
'John6666/uber-realistic-porn-merge-ponyxl-urpm-ponyxlhybridv1-sdxl',
|
155 |
+
#'John6666/uber-realistic-porn-merge-xl-urpmxl-v3-sdxl',
|
156 |
#'John6666/uber-realistic-porn-merge-xl-urpmxl-v6final-sdxl',
|
157 |
#torch_dtype=torch.bfloat16,
|
158 |
add_watermarker=False,
|
|
|
232 |
#pipe.to(device, torch.bfloat16)
|
233 |
#del pipeX
|
234 |
|
235 |
+
# pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/Fantasy_World_XL.safetensors", adapter_name="fantasy")
|
236 |
pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/skin_texture_style_v4.safetensors", adapter_name="skin")
|
237 |
+
#pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/epicNewPhoto.safetensors", adapter_name="photo")
|
238 |
+
#pipe.set_adapters(["skin", "photo", "fantasy"], adapter_weights=[0.75, 0.25, 0.5])
|
239 |
+
#pipe.set_adapters(["skin"], adapter_weights=[0.75])
|
240 |
|
241 |
#sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="dpmsolver++")
|
242 |
#sched = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, beta_schedule="linear", algorithm_type="dpmsolver++")
|