Update app.py
Browse files
app.py
CHANGED
|
@@ -38,20 +38,20 @@ footer {
|
|
| 38 |
'''
|
| 39 |
|
| 40 |
repo_default = StableDiffusionXLPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
|
| 41 |
-
|
| 42 |
-
|
| 43 |
|
| 44 |
-
repo_pixel =
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
|
| 49 |
repo_customs = {
|
| 50 |
"Default": repo_default,
|
| 51 |
-
"Realistic":
|
| 52 |
-
"Anime":
|
| 53 |
-
"Pixel":
|
| 54 |
-
"Large":
|
| 55 |
}
|
| 56 |
|
| 57 |
# Functions
|
|
|
|
| 38 |
'''
|
| 39 |
|
| 40 |
repo_default = StableDiffusionXLPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
|
| 41 |
+
repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
|
| 42 |
+
repo_default.set_adapters(["base"], adapter_weights=[0.7])
|
| 43 |
|
| 44 |
+
repo_pixel = StableDiffusionXLPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
|
| 45 |
+
repo_pixel.load_lora_weights("artificialguybr/PixelArtRedmond", adapter_name="base")
|
| 46 |
+
repo_pixel.load_lora_weights("nerijs/pixel-art-xl", adapter_name="base2")
|
| 47 |
+
repo_pixel.set_adapters(["base", "base2"], adapter_weights=[1, 1])
|
| 48 |
|
| 49 |
repo_customs = {
|
| 50 |
"Default": repo_default,
|
| 51 |
+
"Realistic": StableDiffusionXLPipeline.from_pretrained("ehristoforu/Visionix-alpha", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False),
|
| 52 |
+
"Anime": StableDiffusionXLPipeline.from_pretrained("cagliostrolab/animagine-xl-3.1", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False),
|
| 53 |
+
"Pixel": repo_pixel,
|
| 54 |
+
"Large": StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16, use_safetensors=True),
|
| 55 |
}
|
| 56 |
|
| 57 |
# Functions
|