LPX55 commited on
Commit
55517bb
·
verified ·
1 Parent(s): 0c062c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
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
- "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):
 
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):