Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,6 +32,7 @@ torch.backends.cuda.preferred_blas_library="cublas"
|
|
32 |
# torch.backends.cuda.preferred_linalg_library="cusolver"
|
33 |
|
34 |
torch.set_float32_matmul_precision("highest")
|
|
|
35 |
|
36 |
FTP_HOST = "1ink.us"
|
37 |
FTP_USER = "ford442"
|
@@ -121,6 +122,7 @@ def load_and_prepare_model():
|
|
121 |
#'John6666/uber-realistic-porn-merge-xl-urpmxl-v6final-sdxl',
|
122 |
#torch_dtype=torch.bfloat16,
|
123 |
add_watermarker=False,
|
|
|
124 |
# custom_pipeline="lpw_stable_diffusion_xl",
|
125 |
#use_safetensors=True,
|
126 |
# use_auth_token=HF_TOKEN,
|
|
|
32 |
# torch.backends.cuda.preferred_linalg_library="cusolver"
|
33 |
|
34 |
torch.set_float32_matmul_precision("highest")
|
35 |
+
os.putenv("HF_HUB_ENABLE_HF_TRANSFER","1")
|
36 |
|
37 |
FTP_HOST = "1ink.us"
|
38 |
FTP_USER = "ford442"
|
|
|
122 |
#'John6666/uber-realistic-porn-merge-xl-urpmxl-v6final-sdxl',
|
123 |
#torch_dtype=torch.bfloat16,
|
124 |
add_watermarker=False,
|
125 |
+
low_cpu_mem_usage = False,
|
126 |
# custom_pipeline="lpw_stable_diffusion_xl",
|
127 |
#use_safetensors=True,
|
128 |
# use_auth_token=HF_TOKEN,
|