Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ import numpy as np
|
|
15 |
MODELS = {
|
16 |
"RealVisXL V5.0 Lightning": "SG161222/RealVisXL_V5.0_Lightning",
|
17 |
"Lustify Lightning": "GraydientPlatformAPI/lustify-lightning",
|
18 |
-
"Lustify Inpaint": "andro-flock/LUSTIFY-SDXL-NSFW-checkpoint-v2-0-INPAINTING",
|
19 |
"Juggernaut XL Lightning": "RunDiffusion/Juggernaut-XL-Lightning",
|
20 |
}
|
21 |
|
@@ -59,18 +59,18 @@ pipe.scheduler = TCDScheduler.from_config(pipe.scheduler.config)
|
|
59 |
|
60 |
pipe.to("cuda")
|
61 |
|
62 |
-
inpaint_model = hf_hub_download(
|
63 |
-
|
64 |
-
|
65 |
-
)
|
66 |
-
pipe_inpaint = StableDiffusionXLFillPipeline.from_single_file(
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
)
|
73 |
-
pipe_inpaint.to("cuda")
|
74 |
|
75 |
@spaces.GPU(duration=16)
|
76 |
def fill_image(prompt, image, model_selection, paste_back):
|
|
|
15 |
MODELS = {
|
16 |
"RealVisXL V5.0 Lightning": "SG161222/RealVisXL_V5.0_Lightning",
|
17 |
"Lustify Lightning": "GraydientPlatformAPI/lustify-lightning",
|
18 |
+
# "Lustify Inpaint": "andro-flock/LUSTIFY-SDXL-NSFW-checkpoint-v2-0-INPAINTING",
|
19 |
"Juggernaut XL Lightning": "RunDiffusion/Juggernaut-XL-Lightning",
|
20 |
}
|
21 |
|
|
|
59 |
|
60 |
pipe.to("cuda")
|
61 |
|
62 |
+
# inpaint_model = hf_hub_download(
|
63 |
+
# "andro-flock/LUSTIFY-SDXL-NSFW-checkpoint-v2-0-INPAINTING",
|
64 |
+
# "lustifySDXLNSFW_v20-inpainting.safetensors",
|
65 |
+
# )
|
66 |
+
# pipe_inpaint = StableDiffusionXLFillPipeline.from_single_file(
|
67 |
+
# "https://huggingface.co/andro-flock/LUSTIFY-SDXL-NSFW-checkpoint-v2-0-INPAINTING/raw/main/lustifySDXLNSFW_v20-inpainting.safetensors",
|
68 |
+
# torch_dtype=torch.float16,
|
69 |
+
# vae=vae,
|
70 |
+
# controlnet=model,
|
71 |
+
# use_safetensors=True
|
72 |
+
# )
|
73 |
+
# pipe_inpaint.to("cuda")
|
74 |
|
75 |
@spaces.GPU(duration=16)
|
76 |
def fill_image(prompt, image, model_selection, paste_back):
|