Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ torch.backends.cuda.matmul.allow_fp16_reduced_precision_reduction = False
|
|
32 |
torch.backends.cudnn.allow_tf32 = False
|
33 |
torch.backends.cudnn.deterministic = False
|
34 |
torch.backends.cudnn.benchmark = False
|
35 |
-
torch.backends.cuda.preferred_blas_library="cublas"
|
36 |
# torch.backends.cuda.preferred_linalg_library="cusolver"
|
37 |
|
38 |
torch.set_float32_matmul_precision("highest")
|
@@ -180,7 +180,7 @@ def load_and_prepare_model():
|
|
180 |
#pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1)
|
181 |
#pipe.scheduler=EulerAncestralDiscreteScheduler.from_pretrained('ford442/RealVisXL_V5.0_BF16', subfolder='scheduler',beta_schedule="scaled_linear")
|
182 |
# pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/Fantasy_World_XL.safetensors", adapter_name="fantasy")
|
183 |
-
pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/skin_texture_style_v4.safetensors", adapter_name="skin", low_cpu_mem_usage=
|
184 |
#pipe.unet.load_lora_adapter("ford442/sdxl-vae-bf16", weight_name="LoRA/skin_texture_style_v4.safetensors", prefix="unet")
|
185 |
#pipe.text_encoder.load_lora_adapter("ford442/sdxl-vae-bf16", weight_name="LoRA/skin_texture_style_v4.safetensors", prefix="text_encoder")
|
186 |
|
|
|
32 |
torch.backends.cudnn.allow_tf32 = False
|
33 |
torch.backends.cudnn.deterministic = False
|
34 |
torch.backends.cudnn.benchmark = False
|
35 |
+
#torch.backends.cuda.preferred_blas_library="cublas"
|
36 |
# torch.backends.cuda.preferred_linalg_library="cusolver"
|
37 |
|
38 |
torch.set_float32_matmul_precision("highest")
|
|
|
180 |
#pipe.scheduler=EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1)
|
181 |
#pipe.scheduler=EulerAncestralDiscreteScheduler.from_pretrained('ford442/RealVisXL_V5.0_BF16', subfolder='scheduler',beta_schedule="scaled_linear")
|
182 |
# pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/Fantasy_World_XL.safetensors", adapter_name="fantasy")
|
183 |
+
pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/skin_texture_style_v4.safetensors", adapter_name="skin", low_cpu_mem_usage=True)
|
184 |
#pipe.unet.load_lora_adapter("ford442/sdxl-vae-bf16", weight_name="LoRA/skin_texture_style_v4.safetensors", prefix="unet")
|
185 |
#pipe.text_encoder.load_lora_adapter("ford442/sdxl-vae-bf16", weight_name="LoRA/skin_texture_style_v4.safetensors", prefix="text_encoder")
|
186 |
|