Staticaliza commited on
Commit
242e53a
·
verified ·
1 Parent(s): ef87d27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -36,12 +36,13 @@ controlnet = ControlNetModel.from_pretrained("MakiPan/controlnet-encoded-hands-1
36
 
37
  repo_default = StableDiffusionXLPipeline.from_pretrained("sd-community/sdxl-flash", vae=vae, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
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("artificialguybr/PixelArtRedmond", adapter_name="pixel")
43
- repo_pixel.load_lora_weights("nerijs/pixel-art-xl", adapter_name="pixel2")
44
- repo_pixel.set_adapters(["pixel", "pixel2"], adapter_weights=[1, 1])
45
 
46
  repo_customs = {
47
  "Default": repo_default,
 
36
 
37
  repo_default = StableDiffusionXLPipeline.from_pretrained("sd-community/sdxl-flash", vae=vae, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
38
  repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
39
+ repo_default.load_lora_weights("Corcelio/mobius", adapter_name="base2")
40
+ repo_default.set_adapters(["base", "base2"], adapter_weights=[0.7, 0.7])
41
 
42
  repo_pixel = StableDiffusionXLPipeline.from_pretrained("sd-community/sdxl-flash", vae=vae, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
43
+ repo_pixel.load_lora_weights("artificialguybr/PixelArtRedmond", adapter_name="base")
44
+ repo_pixel.load_lora_weights("nerijs/pixel-art-xl", adapter_name="base2")
45
+ repo_pixel.set_adapters(["base", "base2"], adapter_weights=[1, 1])
46
 
47
  repo_customs = {
48
  "Default": repo_default,