Update app.py
Browse files
app.py
CHANGED
@@ -39,28 +39,24 @@ footer {
|
|
39 |
}
|
40 |
'''
|
41 |
|
42 |
-
'''
|
43 |
repo_default = StableDiffusionXLPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
|
44 |
repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
|
45 |
repo_default.set_adapters(["base"], adapter_weights=[0.7])
|
46 |
-
'''
|
47 |
|
48 |
-
'''
|
49 |
repo_pixel = StableDiffusionXLPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
|
50 |
repo_pixel.load_lora_weights("artificialguybr/PixelArtRedmond", adapter_name="base")
|
51 |
repo_pixel.load_lora_weights("nerijs/pixel-art-xl", adapter_name="base2")
|
52 |
repo_pixel.set_adapters(["base", "base2"], adapter_weights=[1, 1])
|
53 |
-
'''
|
54 |
|
55 |
repo_large_path = snapshot_download(repo_id="stabilityai/stable-diffusion-3-medium", revision="refs/pr/26", token=HF_TOKEN)
|
56 |
repo_large_transformer_path = SD3Transformer2DModel.from_pretrained(repo_large_path, subfolder="transformer", torch_dtype=torch.float16)
|
57 |
repo_large_transformer = PeftModel.from_pretrained(repo_large_transformer_path, "jasperai/flash-sd3")
|
58 |
|
59 |
repo_customs = {
|
60 |
-
"Default":
|
61 |
-
"Realistic":
|
62 |
-
"Anime":
|
63 |
-
"Pixel":
|
64 |
"Large": StableDiffusion3Pipeline.from_pretrained(repo_large_path, transformer=repo_large_transformer, torch_dtype=torch.float16, use_safetensors=True),
|
65 |
}
|
66 |
|
|
|
39 |
}
|
40 |
'''
|
41 |
|
|
|
42 |
repo_default = StableDiffusionXLPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
|
43 |
repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
|
44 |
repo_default.set_adapters(["base"], adapter_weights=[0.7])
|
|
|
45 |
|
|
|
46 |
repo_pixel = StableDiffusionXLPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
|
47 |
repo_pixel.load_lora_weights("artificialguybr/PixelArtRedmond", adapter_name="base")
|
48 |
repo_pixel.load_lora_weights("nerijs/pixel-art-xl", adapter_name="base2")
|
49 |
repo_pixel.set_adapters(["base", "base2"], adapter_weights=[1, 1])
|
|
|
50 |
|
51 |
repo_large_path = snapshot_download(repo_id="stabilityai/stable-diffusion-3-medium", revision="refs/pr/26", token=HF_TOKEN)
|
52 |
repo_large_transformer_path = SD3Transformer2DModel.from_pretrained(repo_large_path, subfolder="transformer", torch_dtype=torch.float16)
|
53 |
repo_large_transformer = PeftModel.from_pretrained(repo_large_transformer_path, "jasperai/flash-sd3")
|
54 |
|
55 |
repo_customs = {
|
56 |
+
"Default": repo_default,
|
57 |
+
"Realistic": StableDiffusionXLPipeline.from_pretrained("ehristoforu/Visionix-alpha", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False),
|
58 |
+
"Anime": StableDiffusionXLPipeline.from_pretrained("cagliostrolab/animagine-xl-3.1", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False),
|
59 |
+
"Pixel": repo_pixel,
|
60 |
"Large": StableDiffusion3Pipeline.from_pretrained(repo_large_path, transformer=repo_large_transformer, torch_dtype=torch.float16, use_safetensors=True),
|
61 |
}
|
62 |
|