Update app.py
Browse files
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 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
|
50 |
-
|
51 |
|
52 |
repo_customs = {
|
53 |
"Default": repo_default,
|
54 |
-
"Realistic":
|
55 |
-
"Anime":
|
56 |
-
"Pixel":
|
57 |
-
"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
|