Spaces:
Running
on
Zero
Running
on
Zero
updated
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import spaces
|
|
5 |
from huggingface_hub import hf_hub_download
|
6 |
from utils import utils, tools, preprocess
|
7 |
|
8 |
-
|
9 |
VAE_PATH = "madebyollin/sdxl-vae-fp16-fix"
|
10 |
REPO_ID = "Pbihao/ControlNeXt"
|
11 |
UNET_FILENAME = "ControlAny-SDXL/anime_canny/unet.safetensors"
|
@@ -18,16 +18,6 @@ DEFAULT_NEGATIVE_PROMPT = "worst quality, abstract, clumsy pose, deformed hand,
|
|
18 |
|
19 |
def ui():
|
20 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
21 |
-
# model_file = hf_hub_download(
|
22 |
-
# repo_id='Lykon/AAM_XL_AnimeMix',
|
23 |
-
# filename='AAM_XL_Anime_Mix.safetensors',
|
24 |
-
# cache_dir=CACHE_DIR,
|
25 |
-
# )
|
26 |
-
model_file = hf_hub_download(
|
27 |
-
repo_id='Eugeoter/artiwaifu-diffusion-1.0',
|
28 |
-
filename='artiwaifu-diffusion-v1.safetensors',
|
29 |
-
cache_dir=CACHE_DIR,
|
30 |
-
)
|
31 |
unet_file = hf_hub_download(
|
32 |
repo_id=REPO_ID,
|
33 |
filename=UNET_FILENAME,
|
@@ -40,7 +30,7 @@ def ui():
|
|
40 |
)
|
41 |
|
42 |
pipeline = tools.get_pipeline(
|
43 |
-
pretrained_model_name_or_path=
|
44 |
unet_model_name_or_path=unet_file,
|
45 |
controlnet_model_name_or_path=controlnet_file,
|
46 |
vae_model_name_or_path=VAE_PATH,
|
|
|
5 |
from huggingface_hub import hf_hub_download
|
6 |
from utils import utils, tools, preprocess
|
7 |
|
8 |
+
BASE_MODEL_PATH = "stablediffusionapi/neta-art-xl-v2"
|
9 |
VAE_PATH = "madebyollin/sdxl-vae-fp16-fix"
|
10 |
REPO_ID = "Pbihao/ControlNeXt"
|
11 |
UNET_FILENAME = "ControlAny-SDXL/anime_canny/unet.safetensors"
|
|
|
18 |
|
19 |
def ui():
|
20 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
unet_file = hf_hub_download(
|
22 |
repo_id=REPO_ID,
|
23 |
filename=UNET_FILENAME,
|
|
|
30 |
)
|
31 |
|
32 |
pipeline = tools.get_pipeline(
|
33 |
+
pretrained_model_name_or_path=BASE_MODEL_PATH,
|
34 |
unet_model_name_or_path=unet_file,
|
35 |
controlnet_model_name_or_path=controlnet_file,
|
36 |
vae_model_name_or_path=VAE_PATH,
|