Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -15,20 +15,18 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
15 |
#vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
|
16 |
|
17 |
#pipe = StableDiffusionXLPipeline.from_pretrained(
|
18 |
-
# "yodayo-ai/
|
19 |
-
#
|
20 |
-
#
|
|
|
|
|
|
|
21 |
#)
|
22 |
-
pipe = StableDiffusionXLPipeline.
|
23 |
-
|
24 |
-
"el-el-san/illustriousPencilXL_v110",
|
25 |
-
torch_dtype=torch.float16,
|
26 |
use_safetensors=True,
|
27 |
-
|
28 |
-
add_watermarker=False #,
|
29 |
-
#variant="fp16"
|
30 |
)
|
31 |
-
|
32 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
33 |
pipe.to(device)
|
34 |
|
|
|
15 |
#vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
|
16 |
|
17 |
#pipe = StableDiffusionXLPipeline.from_pretrained(
|
18 |
+
# #"yodayo-ai/clandestine-xl-1.0",
|
19 |
+
# torch_dtype=torch.float16,
|
20 |
+
# use_safetensors=True,
|
21 |
+
# custom_pipeline="lpw_stable_diffusion_xl",
|
22 |
+
# add_watermarker=False #,
|
23 |
+
# #variant="fp16"
|
24 |
#)
|
25 |
+
pipe = StableDiffusionXLPipeline.from_single_file(
|
26 |
+
"https://huggingface.co/Laxhar/noob_sdxl_v_pred/resolve/main/noob-xl-v-pred-test-v2.safetensors",
|
|
|
|
|
27 |
use_safetensors=True,
|
28 |
+
torch_dtype=torch.float16,
|
|
|
|
|
29 |
)
|
|
|
30 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
31 |
pipe.to(device)
|
32 |
|