Spaces:
Runtime error
Runtime error
Commit
•
9f5ba97
0
Parent(s):
Duplicate from DreamSunny/stable-diffusion-webui-cpu
Browse filesCo-authored-by: 梦晴 <DreamSunny@users.noreply.huggingface.co>
- .gitattributes +34 -0
- README.md +14 -0
- app.py +147 -0
- config.json +266 -0
- packages.txt +2 -0
- requirements.txt +38 -0
.gitattributes
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: Stable Diffusion Webui on Cpu
|
3 |
+
emoji: 🏃
|
4 |
+
colorFrom: pink
|
5 |
+
colorTo: purple
|
6 |
+
sdk: gradio
|
7 |
+
sdk_version: 3.29.0
|
8 |
+
app_file: app.py
|
9 |
+
pinned: false
|
10 |
+
python_version: 3.10.6
|
11 |
+
duplicated_from: DreamSunny/stable-diffusion-webui-cpu
|
12 |
+
---
|
13 |
+
|
14 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
ADDED
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
from sys import executable as pyexecutable
|
3 |
+
import subprocess
|
4 |
+
import pathlib
|
5 |
+
import gc
|
6 |
+
|
7 |
+
def Gitclone(URI:str,ClonePath:str = "") -> int :
|
8 |
+
if(ClonePath == "") :
|
9 |
+
while True:
|
10 |
+
i=subprocess.run([r"git",r"clone",URI])
|
11 |
+
if(i.returncode == 0 ):
|
12 |
+
del i
|
13 |
+
gc.collect()
|
14 |
+
return 0
|
15 |
+
else :
|
16 |
+
del i
|
17 |
+
else:
|
18 |
+
while True:
|
19 |
+
i=subprocess.run([r"git",r"clone",URI,ClonePath])
|
20 |
+
if(i.returncode == 0 ):
|
21 |
+
del i
|
22 |
+
gc.collect()
|
23 |
+
return 0
|
24 |
+
else :
|
25 |
+
del i
|
26 |
+
def DownLoad(URI:str,DownloadPath:str,DownLoadFileName:str ) -> int:
|
27 |
+
while (True):
|
28 |
+
i=subprocess.run([r"aria2c",r"-c",r"-x" ,r"16", r"-s",r"16", r"-k" ,r"1M" ,r"-m",r"0",r"--enable-mmap=false",r"--console-log-level=error",r"-d",DownloadPath,r"-o",DownLoadFileName,URI]);
|
29 |
+
if(i.returncode == 0 ):
|
30 |
+
del i
|
31 |
+
gc.collect()
|
32 |
+
return 0
|
33 |
+
else :
|
34 |
+
del i
|
35 |
+
user_home =pathlib.Path.home().resolve()
|
36 |
+
os.chdir(str(user_home))
|
37 |
+
#clone stable-diffusion-webui repo
|
38 |
+
print("cloning stable-diffusion-webui repo")
|
39 |
+
Gitclone(r"https://github.com/AUTOMATIC1111/stable-diffusion-webui.git",str(user_home / r"stable-diffusion-webui"))
|
40 |
+
os.chdir(str(user_home / r"stable-diffusion-webui"))
|
41 |
+
os.system("git reset --hard 89f9faa63388756314e8a1d96cf86bf5e0663045")
|
42 |
+
#
|
43 |
+
|
44 |
+
#install extensions
|
45 |
+
print("installing extensions")
|
46 |
+
Gitclone(r"https://huggingface.co/embed/negative",str(user_home / r"stable-diffusion-webui" / r"embeddings" / r"negative"))
|
47 |
+
Gitclone(r"https://huggingface.co/embed/lora",str(user_home / r"stable-diffusion-webui" / r"models" / r"Lora" / r"positive"))
|
48 |
+
DownLoad(r"https://huggingface.co/embed/upscale/resolve/main/4x-UltraSharp.pth",str(user_home / r"stable-diffusion-webui" / r"models" / r"ESRGAN") ,r"4x-UltraSharp.pth")
|
49 |
+
while True:
|
50 |
+
if(subprocess.run([r"wget",r"https://raw.githubusercontent.com/camenduru/stable-diffusion-webui-scripts/main/run_n_times.py",r"-O",str(user_home / r"stable-diffusion-webui" / r"scripts" / r"run_n_times.py")]).returncode == 0):
|
51 |
+
break
|
52 |
+
Gitclone(r"https://github.com/deforum-art/deforum-for-automatic1111-webui",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"deforum-for-automatic1111-webui" ))
|
53 |
+
Gitclone(r"https://github.com/AlUlkesh/stable-diffusion-webui-images-browser",str(user_home / r"stable-diffusion-webui" / r"extensions"/ r"stable-diffusion-webui-images-browser"))
|
54 |
+
Gitclone(r"https://github.com/camenduru/stable-diffusion-webui-huggingface",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"stable-diffusion-webui-huggingface"))
|
55 |
+
Gitclone(r"https://github.com/camenduru/sd-civitai-browser",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-civitai-browser"))
|
56 |
+
Gitclone(r"https://github.com/kohya-ss/sd-webui-additional-networks",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-additional-networks"))
|
57 |
+
Gitclone(r"https://github.com/Mikubill/sd-webui-controlnet",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-controlnet"))
|
58 |
+
Gitclone(r"https://github.com/fkunn1326/openpose-editor",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"openpose-editor"))
|
59 |
+
Gitclone(r"https://github.com/jexom/sd-webui-depth-lib",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-depth-lib"))
|
60 |
+
Gitclone(r"https://github.com/hnmr293/posex",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"posex"))
|
61 |
+
Gitclone(r"https://github.com/nonnonstop/sd-webui-3d-open-pose-editor",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-3d-open-pose-editor"))
|
62 |
+
#中文本地化的请解除下一行的注释
|
63 |
+
#Gitclone(r"https://github.com/dtlnor/stable-diffusion-webui-localization-zh_CN.git",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"stable-diffusion-webui-localization-zh_CN"))
|
64 |
+
Gitclone(r"https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git" , str(user_home / r"stable-diffusion-webui" / r"extensions" / r"a1111-sd-webui-tagcomplete"))
|
65 |
+
Gitclone(r"https://github.com/camenduru/sd-webui-tunnels",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-tunnels"))
|
66 |
+
Gitclone(r"https://github.com/etherealxx/batchlinks-webui",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"batchlinks-webui"))
|
67 |
+
Gitclone(r"https://github.com/catppuccin/stable-diffusion-webui",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"stable-diffusion-webui-catppuccin"))
|
68 |
+
|
69 |
+
#Gitclone(r"https://github.com/KohakuBueleaf/a1111-sd-webui-locon",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"a1111-sd-webui-locon" ))
|
70 |
+
Gitclone(r"https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"stable-diffusion-webui-rembg"))
|
71 |
+
Gitclone(r"https://github.com/ashen-sensored/stable-diffusion-webui-two-shot",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"stable-diffusion-webui-two-shot"))
|
72 |
+
Gitclone(r"https://github.com/camenduru/sd_webui_stealth_pnginfo",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"sd_webui_stealth_pnginfo"))
|
73 |
+
|
74 |
+
os.chdir(user_home / r"stable-diffusion-webui")
|
75 |
+
|
76 |
+
#download ControlNet models
|
77 |
+
print("extensions dolwnload done .\ndownloading ControlNet models")
|
78 |
+
dList =[r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11e_sd15_ip2p_fp16.safetensors",
|
79 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11e_sd15_shuffle_fp16.safetensors",
|
80 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_canny_fp16.safetensors",
|
81 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11f1p_sd15_depth_fp16.safetensors",
|
82 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_inpaint_fp16.safetensors",
|
83 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_lineart_fp16.safetensors",
|
84 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_mlsd_fp16.safetensors",
|
85 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_normalbae_fp16.safetensors",
|
86 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_openpose_fp16.safetensors",
|
87 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_scribble_fp16.safetensors",
|
88 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_seg_fp16.safetensors",
|
89 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_softedge_fp16.safetensors",
|
90 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15s2_lineart_anime_fp16.safetensors",
|
91 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11f1e_sd15_tile_fp16.safetensors",
|
92 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11e_sd15_ip2p_fp16.yaml",
|
93 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11e_sd15_shuffle_fp16.yaml",
|
94 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_canny_fp16.yaml",
|
95 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11f1p_sd15_depth_fp16.yaml",
|
96 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_inpaint_fp16.yaml",
|
97 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_lineart_fp16.yaml",
|
98 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_mlsd_fp16.yaml",
|
99 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_normalbae_fp16.yaml",
|
100 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_openpose_fp16.yaml",
|
101 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_scribble_fp16.yaml",
|
102 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_seg_fp16.yaml",
|
103 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_softedge_fp16.yaml",
|
104 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15s2_lineart_anime_fp16.yaml",
|
105 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11f1e_sd15_tile_fp16.yaml",
|
106 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_style_sd14v1.pth",
|
107 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_sketch_sd14v1.pth",
|
108 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_seg_sd14v1.pth",
|
109 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_openpose_sd14v1.pth",
|
110 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_keypose_sd14v1.pth",
|
111 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_depth_sd14v1.pth",
|
112 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_canny_sd14v1.pth",
|
113 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_canny_sd15v2.pth",
|
114 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_depth_sd15v2.pth",
|
115 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_sketch_sd15v2.pth",
|
116 |
+
r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_zoedepth_sd15v1.pth"]
|
117 |
+
for i in range(0,len(dList)): DownLoad(dList[i],str(user_home / "stable-diffusion-webui" / "extensions" / "sd-webui-controlnet" / "models"),pathlib.Path(dList[i]).name)
|
118 |
+
del dList
|
119 |
+
|
120 |
+
#download model
|
121 |
+
#you can change model download address here
|
122 |
+
print("ControlNet models download done.\ndownloading model")
|
123 |
+
DownLoad(r"https://huggingface.co/ckpt/anything-v4.0/resolve/main/anything-v4.5-pruned.ckpt",str(user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion"),r"anything-v4.5-pruned.ckpt")
|
124 |
+
DownLoad(r"https://huggingface.co/ckpt/anything-v4.0/resolve/main/anything-v4.0.vae.pt",str(user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion"),r"anything-v4.0.vae.pt")
|
125 |
+
DownLoad(r"https://huggingface.co/gsdf/Counterfeit-V3.0/resolve/main/Counterfeit-V3.0_fp16.safetensors",str(user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion"),r"Counterfeit-V3.0_fp16.safetensors")
|
126 |
+
DownLoad(r"https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/Models/AbyssOrangeMix3/AOM3A1B_orangemixs.safetensors",str(user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion"),r"AOM3A1B_orangemixs.safetensors")
|
127 |
+
DownLoad(r"https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/VAEs/orangemix.vae.pt",str(user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion"),r"orangemix.vae.pt")
|
128 |
+
DownLoad(r"https://huggingface.co/Meina/MeinaPastel/resolve/main/MeinaPastelV5%20-%20Baked%20VAE.safetensors",str(user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion"),r"MeinaPastelV5_BakedVAE.safetensors")
|
129 |
+
DownLoad(r"https://huggingface.co/Meina/MeinaPastel/resolve/main/MeinaPastelV5%20-%20Without%20VAE.safetensors",str(user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion"),r"MeinaPastelV5_WithoutVAE.safetensors")
|
130 |
+
DownLoad(r"https://civitai.com/api/download/models/9474",str(user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion"),r"chilloutmix_NiPrunedFp16.safetensors")
|
131 |
+
|
132 |
+
DownLoad(r"https://civitai.com/api/download/models/39885",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-additional-networks" / r"models"/ r"lora"),r"Better_light.safetensors")
|
133 |
+
DownLoad(r"https://civitai.com/api/download/models/21065",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-additional-networks" / r"models"/ r"lora"),r"LAS.safetensors")
|
134 |
+
DownLoad(r"https://civitai.com/api/download/models/39164",str(user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-additional-networks" / r"models"/ r"lora"),r"backlighting.safetensors")
|
135 |
+
#strt webui
|
136 |
+
|
137 |
+
print("Done\nStarting Webui...")
|
138 |
+
os.chdir(user_home / r"stable-diffusion-webui")
|
139 |
+
while True:
|
140 |
+
ret=subprocess.run([r"python3" ,r"launch.py",r"--precision",r"full",r"--no-half",r"--no-half-vae",r"--enable-insecure-extension-access",r"--medvram",r"--skip-torch-cuda-test",r"--enable-console-prompts",r"--ui-settings-file="+str(pathlib.Path(__file__).parent /r"config.json")])
|
141 |
+
if(ret.returncode == 0 ):
|
142 |
+
del ret
|
143 |
+
gc.collect()
|
144 |
+
else :
|
145 |
+
del ret
|
146 |
+
|
147 |
+
del os ,user_home ,pyexecutable ,subprocess
|
config.json
ADDED
@@ -0,0 +1,266 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"samples_save": true,
|
3 |
+
"samples_format": "png",
|
4 |
+
"samples_filename_pattern": "",
|
5 |
+
"save_images_add_number": true,
|
6 |
+
"grid_save": true,
|
7 |
+
"grid_format": "png",
|
8 |
+
"grid_extended_filename": false,
|
9 |
+
"grid_only_if_multiple": true,
|
10 |
+
"grid_prevent_empty_spots": false,
|
11 |
+
"n_rows": -1,
|
12 |
+
"enable_pnginfo": true,
|
13 |
+
"save_txt": false,
|
14 |
+
"save_images_before_face_restoration": false,
|
15 |
+
"save_images_before_highres_fix": false,
|
16 |
+
"save_images_before_color_correction": false,
|
17 |
+
"save_mask": false,
|
18 |
+
"save_mask_composite": false,
|
19 |
+
"jpeg_quality": 80,
|
20 |
+
"webp_lossless": false,
|
21 |
+
"export_for_4chan": true,
|
22 |
+
"img_downscale_threshold": 4.0,
|
23 |
+
"target_side_length": 4000,
|
24 |
+
"img_max_size_mp": 200,
|
25 |
+
"use_original_name_batch": true,
|
26 |
+
"use_upscaler_name_as_suffix": false,
|
27 |
+
"save_selected_only": true,
|
28 |
+
"save_init_img": false,
|
29 |
+
"temp_dir": "",
|
30 |
+
"clean_temp_dir_at_start": false,
|
31 |
+
"outdir_samples": "",
|
32 |
+
"outdir_txt2img_samples": "outputs/txt2img-images",
|
33 |
+
"outdir_img2img_samples": "outputs/img2img-images",
|
34 |
+
"outdir_extras_samples": "outputs/extras-images",
|
35 |
+
"outdir_grids": "",
|
36 |
+
"outdir_txt2img_grids": "outputs/txt2img-grids",
|
37 |
+
"outdir_img2img_grids": "outputs/img2img-grids",
|
38 |
+
"outdir_save": "log/images",
|
39 |
+
"outdir_init_images": "outputs/init-images",
|
40 |
+
"save_to_dirs": true,
|
41 |
+
"grid_save_to_dirs": true,
|
42 |
+
"use_save_to_dirs_for_ui": false,
|
43 |
+
"directories_filename_pattern": "[date]",
|
44 |
+
"directories_max_prompt_words": 8,
|
45 |
+
"ESRGAN_tile": 192,
|
46 |
+
"ESRGAN_tile_overlap": 8,
|
47 |
+
"realesrgan_enabled_models": [
|
48 |
+
"R-ESRGAN 4x+",
|
49 |
+
"R-ESRGAN 4x+ Anime6B"
|
50 |
+
],
|
51 |
+
"upscaler_for_img2img": null,
|
52 |
+
"SCUNET_tile": 256,
|
53 |
+
"SCUNET_tile_overlap": 8,
|
54 |
+
"face_restoration_model": "CodeFormer",
|
55 |
+
"code_former_weight": 0.5,
|
56 |
+
"face_restoration_unload": false,
|
57 |
+
"show_warnings": false,
|
58 |
+
"memmon_poll_rate": 8,
|
59 |
+
"samples_log_stdout": false,
|
60 |
+
"multiple_tqdm": true,
|
61 |
+
"print_hypernet_extra": false,
|
62 |
+
"unload_models_when_training": false,
|
63 |
+
"pin_memory": false,
|
64 |
+
"save_optimizer_state": false,
|
65 |
+
"save_training_settings_to_txt": true,
|
66 |
+
"dataset_filename_word_regex": "",
|
67 |
+
"dataset_filename_join_string": " ",
|
68 |
+
"training_image_repeats_per_epoch": 1,
|
69 |
+
"training_write_csv_every": 500,
|
70 |
+
"training_xattention_optimizations": false,
|
71 |
+
"training_enable_tensorboard": false,
|
72 |
+
"training_tensorboard_save_images": false,
|
73 |
+
"training_tensorboard_flush_every": 120,
|
74 |
+
"sd_model_checkpoint": "anything-v4.5-pruned.ckpt [e4b17ce185]",
|
75 |
+
"sd_checkpoint_cache": 0,
|
76 |
+
"sd_vae_checkpoint_cache": 0,
|
77 |
+
"sd_vae": "Automatic",
|
78 |
+
"sd_vae_as_default": true,
|
79 |
+
"inpainting_mask_weight": 1.0,
|
80 |
+
"initial_noise_multiplier": 1.0,
|
81 |
+
"img2img_color_correction": false,
|
82 |
+
"img2img_fix_steps": false,
|
83 |
+
"img2img_background_color": "#ffffff",
|
84 |
+
"enable_quantization": false,
|
85 |
+
"enable_emphasis": true,
|
86 |
+
"enable_batch_seeds": true,
|
87 |
+
"comma_padding_backtrack": 20,
|
88 |
+
"CLIP_stop_at_last_layers": 1,
|
89 |
+
"upcast_attn": false,
|
90 |
+
"randn_source": "GPU",
|
91 |
+
"use_old_emphasis_implementation": false,
|
92 |
+
"use_old_karras_scheduler_sigmas": false,
|
93 |
+
"no_dpmpp_sde_batch_determinism": false,
|
94 |
+
"use_old_hires_fix_width_height": false,
|
95 |
+
"dont_fix_second_order_samplers_schedule": false,
|
96 |
+
"interrogate_keep_models_in_memory": false,
|
97 |
+
"interrogate_return_ranks": false,
|
98 |
+
"interrogate_clip_num_beams": 1,
|
99 |
+
"interrogate_clip_min_length": 24,
|
100 |
+
"interrogate_clip_max_length": 48,
|
101 |
+
"interrogate_clip_dict_limit": 1500,
|
102 |
+
"interrogate_clip_skip_categories": [],
|
103 |
+
"interrogate_deepbooru_score_threshold": 0.5,
|
104 |
+
"deepbooru_sort_alpha": true,
|
105 |
+
"deepbooru_use_spaces": false,
|
106 |
+
"deepbooru_escape": true,
|
107 |
+
"deepbooru_filter_tags": "",
|
108 |
+
"extra_networks_default_view": "cards",
|
109 |
+
"extra_networks_default_multiplier": 1.0,
|
110 |
+
"extra_networks_card_width": 0,
|
111 |
+
"extra_networks_card_height": 0,
|
112 |
+
"extra_networks_add_text_separator": " ",
|
113 |
+
"sd_hypernetwork": "None",
|
114 |
+
"return_grid": true,
|
115 |
+
"return_mask": false,
|
116 |
+
"return_mask_composite": false,
|
117 |
+
"do_not_show_images": false,
|
118 |
+
"send_seed": true,
|
119 |
+
"send_size": true,
|
120 |
+
"font": "",
|
121 |
+
"js_modal_lightbox": true,
|
122 |
+
"js_modal_lightbox_initially_zoomed": true,
|
123 |
+
"js_modal_lightbox_gamepad": true,
|
124 |
+
"js_modal_lightbox_gamepad_repeat": 250,
|
125 |
+
"show_progress_in_title": true,
|
126 |
+
"samplers_in_dropdown": true,
|
127 |
+
"dimensions_and_batch_together": true,
|
128 |
+
"keyedit_precision_attention": 0.1,
|
129 |
+
"keyedit_precision_extra": 0.05,
|
130 |
+
"keyedit_delimiters": ".,\\/!?%^*;:{}=`~()",
|
131 |
+
"quicksettings_list": [
|
132 |
+
"sd_model_checkpoint",
|
133 |
+
"sd_vae"
|
134 |
+
],
|
135 |
+
"hidden_tabs": [],
|
136 |
+
"ui_reorder": "inpaint, sampler, checkboxes, hires_fix, dimensions, cfg, seed, batch, override_settings, scripts",
|
137 |
+
"ui_extra_networks_tab_reorder": "",
|
138 |
+
"localization": "None",
|
139 |
+
"gradio_theme": "Default",
|
140 |
+
"add_model_hash_to_info": true,
|
141 |
+
"add_model_name_to_info": true,
|
142 |
+
"add_version_to_infotext": true,
|
143 |
+
"disable_weights_auto_swap": true,
|
144 |
+
"show_progressbar": true,
|
145 |
+
"live_previews_enable": true,
|
146 |
+
"show_progress_grid": true,
|
147 |
+
"show_progress_every_n_steps": 10,
|
148 |
+
"show_progress_type": "Approx NN",
|
149 |
+
"live_preview_content": "Prompt",
|
150 |
+
"live_preview_refresh_period": 1000,
|
151 |
+
"hide_samplers": [],
|
152 |
+
"eta_ddim": 0.0,
|
153 |
+
"eta_ancestral": 1.0,
|
154 |
+
"ddim_discretize": "uniform",
|
155 |
+
"s_churn": 0.0,
|
156 |
+
"s_min_uncond": 0,
|
157 |
+
"s_tmin": 0.0,
|
158 |
+
"s_noise": 1.0,
|
159 |
+
"eta_noise_seed_delta": 0,
|
160 |
+
"always_discard_next_to_last_sigma": false,
|
161 |
+
"uni_pc_variant": "bh1",
|
162 |
+
"uni_pc_skip_type": "time_uniform",
|
163 |
+
"uni_pc_order": 3,
|
164 |
+
"uni_pc_lower_order_final": true,
|
165 |
+
"postprocessing_enable_in_main_ui": [],
|
166 |
+
"postprocessing_operation_order": [],
|
167 |
+
"upscaling_max_images_in_cache": 5,
|
168 |
+
"disabled_extensions": [],
|
169 |
+
"disable_all_extensions": "none",
|
170 |
+
"restore_config_state_file": "",
|
171 |
+
"sd_checkpoint_hash": "e4b17ce185857a3a20d778efb5222f32dfb65b89f258b29014a5659d319cb4bd",
|
172 |
+
"ldsr_steps": 100,
|
173 |
+
"ldsr_cached": false,
|
174 |
+
"SWIN_tile": 192,
|
175 |
+
"SWIN_tile_overlap": 8,
|
176 |
+
"lora_functional": false,
|
177 |
+
"sd_lora": "None",
|
178 |
+
"deforum_enable_persistent_settings": false,
|
179 |
+
"deforum_persistent_settings_path": "models/Deforum/deforum_persistent_settings.txt",
|
180 |
+
"deforum_ffmpeg_location": "G:\\Python\\lib\\site-packages\\imageio_ffmpeg\\binaries\\ffmpeg-win64-v4.2.2.exe",
|
181 |
+
"deforum_ffmpeg_crf": 17,
|
182 |
+
"deforum_ffmpeg_preset": "slow",
|
183 |
+
"deforum_debug_mode_enabled": false,
|
184 |
+
"deforum_save_gen_info_as_srt": false,
|
185 |
+
"deforum_save_gen_info_as_srt_params": [
|
186 |
+
"Noise Schedule"
|
187 |
+
],
|
188 |
+
"additional_networks_extra_lora_path": "",
|
189 |
+
"additional_networks_sort_models_by": "name",
|
190 |
+
"additional_networks_reverse_sort_order": false,
|
191 |
+
"additional_networks_model_name_filter": "",
|
192 |
+
"additional_networks_xy_grid_model_metadata": "",
|
193 |
+
"additional_networks_hash_thread_count": 1.0,
|
194 |
+
"additional_networks_back_up_model_when_saving": true,
|
195 |
+
"additional_networks_show_only_safetensors": false,
|
196 |
+
"additional_networks_show_only_models_with_metadata": "disabled",
|
197 |
+
"additional_networks_max_top_tags": 20.0,
|
198 |
+
"additional_networks_max_dataset_folders": 20.0,
|
199 |
+
"control_net_model_config": "models\\cldm_v15.yaml",
|
200 |
+
"control_net_model_adapter_config": "models\\t2iadapter_sketch_sd14v1.yaml",
|
201 |
+
"control_net_detectedmap_dir": "detected_maps",
|
202 |
+
"control_net_models_path": "",
|
203 |
+
"control_net_modules_path": "",
|
204 |
+
"control_net_max_models_num": 1,
|
205 |
+
"control_net_model_cache_size": 1,
|
206 |
+
"control_net_control_transfer": false,
|
207 |
+
"control_net_no_detectmap": false,
|
208 |
+
"control_net_detectmap_autosaving": false,
|
209 |
+
"control_net_allow_script_control": false,
|
210 |
+
"control_net_skip_img2img_processing": false,
|
211 |
+
"control_net_monocular_depth_optim": false,
|
212 |
+
"control_net_only_mid_control": false,
|
213 |
+
"control_net_sync_field_args": false,
|
214 |
+
"ctp_flavor": "mocha",
|
215 |
+
"accent_color": "maroon",
|
216 |
+
"image_browser_active_tabs": "txt2img, img2img, txt2img-grids, img2img-grids, Extras, Favorites, Others",
|
217 |
+
"image_browser_hidden_components": [],
|
218 |
+
"image_browser_with_subdirs": true,
|
219 |
+
"image_browser_copy_image": false,
|
220 |
+
"image_browser_delete_message": true,
|
221 |
+
"image_browser_txt_files": true,
|
222 |
+
"image_browser_debug_level": "0 - none",
|
223 |
+
"image_browser_delete_recycle": false,
|
224 |
+
"image_browser_scan_exif": true,
|
225 |
+
"image_browser_mod_shift": false,
|
226 |
+
"image_browser_mod_ctrl_shift": false,
|
227 |
+
"image_browser_enable_maint": true,
|
228 |
+
"image_browser_ranking_pnginfo": false,
|
229 |
+
"image_browser_page_columns": 6.0,
|
230 |
+
"image_browser_page_rows": 6.0,
|
231 |
+
"image_browser_pages_perload": 20.0,
|
232 |
+
"image_browser_use_thumbnail": false,
|
233 |
+
"image_browser_thumbnail_size": 200.0,
|
234 |
+
"image_browser_swipe": false,
|
235 |
+
"tac_tagFile": "danbooru.csv",
|
236 |
+
"tac_active": true,
|
237 |
+
"tac_activeIn.txt2img": true,
|
238 |
+
"tac_activeIn.img2img": true,
|
239 |
+
"tac_activeIn.negativePrompts": true,
|
240 |
+
"tac_activeIn.thirdParty": true,
|
241 |
+
"tac_activeIn.modelList": "",
|
242 |
+
"tac_activeIn.modelListMode": "Blacklist",
|
243 |
+
"tac_slidingPopup": true,
|
244 |
+
"tac_maxResults": 5.0,
|
245 |
+
"tac_showAllResults": false,
|
246 |
+
"tac_resultStepLength": 100.0,
|
247 |
+
"tac_delayTime": 100.0,
|
248 |
+
"tac_useWildcards": true,
|
249 |
+
"tac_useEmbeddings": true,
|
250 |
+
"tac_useHypernetworks": true,
|
251 |
+
"tac_useLoras": true,
|
252 |
+
"tac_useLycos": true,
|
253 |
+
"tac_showWikiLinks": false,
|
254 |
+
"tac_replaceUnderscores": true,
|
255 |
+
"tac_escapeParentheses": true,
|
256 |
+
"tac_appendComma": true,
|
257 |
+
"tac_alias.searchByAlias": true,
|
258 |
+
"tac_alias.onlyShowAlias": false,
|
259 |
+
"tac_translation.translationFile": "None",
|
260 |
+
"tac_translation.oldFormat": false,
|
261 |
+
"tac_translation.searchByTranslation": true,
|
262 |
+
"tac_extra.extraFile": "extra-quality-tags.csv",
|
263 |
+
"tac_extra.addMode": "Insert before",
|
264 |
+
"tac_keymap": "{\n \"MoveUp\": \"ArrowUp\",\n \"MoveDown\": \"ArrowDown\",\n \"JumpUp\": \"PageUp\",\n \"JumpDown\": \"PageDown\",\n \"JumpToStart\": \"Home\",\n \"JumpToEnd\": \"End\",\n \"ChooseSelected\": \"Enter\",\n \"ChooseFirstOrSelected\": \"Tab\",\n \"Close\": \"Escape\"\n}",
|
265 |
+
"tac_colormap": "{\n \"danbooru\": {\n \"-1\": [\"red\", \"maroon\"],\n \"0\": [\"lightblue\", \"dodgerblue\"],\n \"1\": [\"indianred\", \"firebrick\"],\n \"3\": [\"violet\", \"darkorchid\"],\n \"4\": [\"lightgreen\", \"darkgreen\"],\n \"5\": [\"orange\", \"darkorange\"]\n },\n \"e621\": {\n \"-1\": [\"red\", \"maroon\"],\n \"0\": [\"lightblue\", \"dodgerblue\"],\n \"1\": [\"gold\", \"goldenrod\"],\n \"3\": [\"violet\", \"darkorchid\"],\n \"4\": [\"lightgreen\", \"darkgreen\"],\n \"5\": [\"tomato\", \"darksalmon\"],\n \"6\": [\"red\", \"maroon\"],\n \"7\": [\"whitesmoke\", \"black\"],\n \"8\": [\"seagreen\", \"darkseagreen\"]\n }\n}"
|
266 |
+
}
|
packages.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
aria2
|
2 |
+
wget
|
requirements.txt
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
torch
|
2 |
+
torchvision
|
3 |
+
torchaudio
|
4 |
+
torchtext
|
5 |
+
torchdata
|
6 |
+
astunparse
|
7 |
+
blendmodes
|
8 |
+
accelerate
|
9 |
+
basicsr
|
10 |
+
fonts
|
11 |
+
font-roboto
|
12 |
+
gfpgan
|
13 |
+
gradio==3.29.0
|
14 |
+
numpy
|
15 |
+
omegaconf
|
16 |
+
opencv-contrib-python
|
17 |
+
requests
|
18 |
+
piexif
|
19 |
+
Pillow
|
20 |
+
pytorch_lightning==1.7.7
|
21 |
+
realesrgan
|
22 |
+
scikit-image>=0.19
|
23 |
+
timm==0.4.12
|
24 |
+
transformers==4.25.1
|
25 |
+
torch
|
26 |
+
einops
|
27 |
+
jsonmerge
|
28 |
+
clean-fid
|
29 |
+
resize-right
|
30 |
+
torchdiffeq
|
31 |
+
kornia
|
32 |
+
lark
|
33 |
+
inflection
|
34 |
+
GitPython
|
35 |
+
torchsde
|
36 |
+
safetensors
|
37 |
+
psutil
|
38 |
+
rich
|