Staticaliza commited on
Commit
7121aae
·
verified ·
1 Parent(s): b416323

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -42,19 +42,19 @@ repo_default = StableDiffusionXLPipeline.from_pretrained("sd-community/sdxl-flas
42
  repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
43
  repo_default.set_adapters(["base"], adapter_weights=[0.7])
44
 
45
- #repo_pixel = StableDiffusionXLPipeline.from_pretrained("sd-community/sdxl-flash", vae=vae, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
46
- #repo_pixel.load_lora_weights("artificialguybr/PixelArtRedmond", adapter_name="base")
47
- #repo_pixel.load_lora_weights("nerijs/pixel-art-xl", adapter_name="base2")
48
- #repo_pixel.set_adapters(["base", "base2"], adapter_weights=[1, 1])
49
 
50
- #repo_large = StableDiffusionXLPipeline.from_pretrained("Corcelio/mobius", vae=vae, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
51
 
52
  repo_customs = {
53
  "Default": repo_default,
54
- "Realistic": None, #StableDiffusionXLPipeline.from_pretrained("stablediffusionapi/NightVision_XL", vae=vae, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=False, add_watermarker=False),
55
- "Anime": None, #StableDiffusionXLPipeline.from_pretrained("cagliostrolab/animagine-xl-3.1", vae=vae, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False),
56
- "Pixel": None, #repo_pixel,
57
- "Large": None, #repo_large,
58
  }
59
 
60
  # Functions
 
42
  repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
43
  repo_default.set_adapters(["base"], adapter_weights=[0.7])
44
 
45
+ repo_pixel = StableDiffusionXLPipeline.from_pretrained("sd-community/sdxl-flash", vae=vae, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
46
+ repo_pixel.load_lora_weights("artificialguybr/PixelArtRedmond", adapter_name="base")
47
+ repo_pixel.load_lora_weights("nerijs/pixel-art-xl", adapter_name="base2")
48
+ repo_pixel.set_adapters(["base", "base2"], adapter_weights=[1, 1])
49
 
50
+ repo_large = StableDiffusionXLPipeline.from_pretrained("Corcelio/mobius", vae=vae, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
51
 
52
  repo_customs = {
53
  "Default": repo_default,
54
+ "Realistic": StableDiffusionXLPipeline.from_pretrained("stablediffusionapi/NightVision_XL", vae=vae, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=False, add_watermarker=False),
55
+ "Anime": StableDiffusionXLPipeline.from_pretrained("cagliostrolab/animagine-xl-3.1", vae=vae, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False),
56
+ "Pixel": repo_pixel,
57
+ "Large": repo_large,
58
  }
59
 
60
  # Functions