Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ import os
|
|
| 11 |
import numpy as np
|
| 12 |
|
| 13 |
from huggingface_hub import hf_hub_download
|
| 14 |
-
from diffusers import DiffusionPipeline,StableDiffusionPipeline, DPMSolverMultistepScheduler
|
| 15 |
from transformers import pipeline
|
| 16 |
from PIL import Image
|
| 17 |
|
|
@@ -43,20 +43,20 @@ footer {
|
|
| 43 |
|
| 44 |
repo_nsfw_classifier = pipeline("image-classification", model="Falconsai/nsfw_image_detection")
|
| 45 |
|
| 46 |
-
repo_default =
|
| 47 |
repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="default_base")
|
| 48 |
repo_default.load_lora_weights("artificialguybr/PixelArtRedmond", adapter_name="pixel_base")
|
| 49 |
repo_default.load_lora_weights("nerijs/pixel-art-xl", adapter_name="pixel_base_2")
|
| 50 |
|
| 51 |
-
repo_pro =
|
| 52 |
repo_pro.load_lora_weights(hf_hub_download("alimama-creative/FLUX.1-Turbo-Alpha", "diffusion_pytorch_model.safetensors"))
|
| 53 |
|
| 54 |
repo_classic = StableDiffusionPipeline.from_pretrained("gsdf/Counterfeit-V2.5", torch_dtype=torch.float16, use_safetensors=True, safety_checker=None)
|
| 55 |
|
| 56 |
repo_customs = {
|
| 57 |
"Default": repo_default,
|
| 58 |
-
"Realistic":
|
| 59 |
-
"Anime":
|
| 60 |
"Pixel": repo_default,
|
| 61 |
"Pro": repo_pro,
|
| 62 |
"Classic": repo_classic,
|
|
|
|
| 11 |
import numpy as np
|
| 12 |
|
| 13 |
from huggingface_hub import hf_hub_download
|
| 14 |
+
from diffusers import DiffusionPipeline, StableDiffusionPipeline, DPMSolverMultistepScheduler
|
| 15 |
from transformers import pipeline
|
| 16 |
from PIL import Image
|
| 17 |
|
|
|
|
| 43 |
|
| 44 |
repo_nsfw_classifier = pipeline("image-classification", model="Falconsai/nsfw_image_detection")
|
| 45 |
|
| 46 |
+
repo_default = StableDiffusionPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
|
| 47 |
repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="default_base")
|
| 48 |
repo_default.load_lora_weights("artificialguybr/PixelArtRedmond", adapter_name="pixel_base")
|
| 49 |
repo_default.load_lora_weights("nerijs/pixel-art-xl", adapter_name="pixel_base_2")
|
| 50 |
|
| 51 |
+
repo_pro = StableDiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16, use_safetensors=True)
|
| 52 |
repo_pro.load_lora_weights(hf_hub_download("alimama-creative/FLUX.1-Turbo-Alpha", "diffusion_pytorch_model.safetensors"))
|
| 53 |
|
| 54 |
repo_classic = StableDiffusionPipeline.from_pretrained("gsdf/Counterfeit-V2.5", torch_dtype=torch.float16, use_safetensors=True, safety_checker=None)
|
| 55 |
|
| 56 |
repo_customs = {
|
| 57 |
"Default": repo_default,
|
| 58 |
+
"Realistic": StableDiffusionPipeline.from_pretrained("ehristoforu/Visionix-alpha", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False),
|
| 59 |
+
"Anime": StableDiffusionPipeline.from_pretrained("cagliostrolab/animagine-xl-3.1", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False),
|
| 60 |
"Pixel": repo_default,
|
| 61 |
"Pro": repo_pro,
|
| 62 |
"Classic": repo_classic,
|