Staticaliza commited on
Commit
76ba892
·
verified ·
1 Parent(s): 32f63e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,7 +38,7 @@ repo_default = StableDiffusionXLPipeline.from_pretrained("sd-community/sdxl-flas
38
  repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
39
  repo_default.set_adapters(["base"], adapter_weights=[0.7])
40
 
41
- repo_pixel = StableDiffusionXLPipeline.from_pretrained("sd-community/sdxl-flash", vae=vae, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
42
  repo_pixel.load_lora_weights("latent-consistency/lcm-lora-sdxl", adapter_name="lora")
43
  repo_pixel.load_lora_weights("nerijs/pixel-art-xl", adapter_name="pixel")
44
  repo_pixel.set_adapters(["lora", "pixel"], adapter_weights=[1.0, 1.2])
@@ -81,7 +81,7 @@ def generate(input=DEFAULT_INPUT, filter_input="", negative_input=DEFAULT_NEGATI
81
  guidance = (not guidance or guidance < 0 and 7) or guidance
82
  elif model == "Pixel":
83
  steps = (not steps or steps < 0 and 8) or steps
84
- guidance = (not guidance or guidance < 0 and 3) or guidance
85
  else:
86
  steps = (not steps or steps < 0 and 16) or steps
87
  guidance = (not guidance or guidance < 0 and 3) or guidance
 
38
  repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
39
  repo_default.set_adapters(["base"], adapter_weights=[0.7])
40
 
41
+ repo_pixel = StableDiffusionXLPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", vae=vae, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
42
  repo_pixel.load_lora_weights("latent-consistency/lcm-lora-sdxl", adapter_name="lora")
43
  repo_pixel.load_lora_weights("nerijs/pixel-art-xl", adapter_name="pixel")
44
  repo_pixel.set_adapters(["lora", "pixel"], adapter_weights=[1.0, 1.2])
 
81
  guidance = (not guidance or guidance < 0 and 7) or guidance
82
  elif model == "Pixel":
83
  steps = (not steps or steps < 0 and 8) or steps
84
+ guidance = (not guidance or guidance < 0 and 1.5) or guidance
85
  else:
86
  steps = (not steps or steps < 0 and 16) or steps
87
  guidance = (not guidance or guidance < 0 and 3) or guidance