DreamSunny commited on
Commit
d01c866
1 Parent(s): b943654

Update Stable Diffusion Version 1.32

Browse files

Replace AOM3A1B To AbyssOrangeMix2 sfw
Add detection Resnet50 parsing_parsenet GFPGANv1.4

Files changed (4) hide show
  1. README.md +1 -1
  2. app.py +82 -70
  3. config.json +7 -262
  4. requirements.txt +2 -3
README.md CHANGED
@@ -4,7 +4,7 @@ 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
 
4
  colorFrom: pink
5
  colorTo: purple
6
  sdk: gradio
7
+ sdk_version: 3.31.0
8
  app_file: app.py
9
  pinned: false
10
  python_version : 3.10.6
app.py CHANGED
@@ -1,31 +1,29 @@
 
 
 
 
 
 
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()
@@ -36,43 +34,42 @@ 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",
@@ -114,34 +111,49 @@ dList =[r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11e_
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
 
1
+ """
2
+ Stable Diffusion Webui Version 1.32
3
+ https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.3.2
4
+
5
+ """
6
+
7
  import os
8
+ from sys import executable
9
  import subprocess
10
  import pathlib
11
  import gc
12
 
13
+ def Gitclone(URI:str,ClonePath:pathlib.Path ) -> int :
14
+ if pathlib.Path.exists(ClonePath):
15
+ return 0
16
+ while True:
17
+ i=subprocess.run([r"git",r"clone",str(URI),str(ClonePath)])
18
+ if(i.returncode == 0 ):
19
+ del i
20
+ gc.collect()
21
+ return 0
22
+ else :
23
+ del i
24
+ def DownLoad(URI:str,DownloadPath:pathlib.Path,DownLoadFileName:str ) -> int:
 
 
 
 
 
 
 
 
25
  while (True):
26
+ 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",str(DownloadPath),r"-o",DownLoadFileName,URI]);
27
  if(i.returncode == 0 ):
28
  del i
29
  gc.collect()
 
34
  os.chdir(str(user_home))
35
  #clone stable-diffusion-webui repo
36
  print("cloning stable-diffusion-webui repo")
37
+ Gitclone(r"https://github.com/AUTOMATIC1111/stable-diffusion-webui.git",user_home / r"stable-diffusion-webui")
38
  os.chdir(str(user_home / r"stable-diffusion-webui"))
39
+ os.system("git reset --hard baf6946e06249c5af9851c60171692c44ef633e0") #Version 1.32
 
 
40
  #install extensions
41
  print("installing extensions")
42
+ Gitclone(r"https://huggingface.co/embed/negative",user_home / r"stable-diffusion-webui" / r"embeddings" / r"negative")
43
+ Gitclone(r"https://huggingface.co/embed/lora",user_home / r"stable-diffusion-webui" / r"models" / r"Lora" / r"positive")
44
+ DownLoad(r"https://huggingface.co/embed/upscale/resolve/main/4x-UltraSharp.pth",user_home / r"stable-diffusion-webui" / r"models" / r"ESRGAN" ,r"4x-UltraSharp.pth")
45
+ while (True):
46
+ i=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")])
47
+ if(i.returncode == 0 ):
48
+ del i
49
+ gc.collect()
50
  break
51
+ else :
52
+ del i
53
+ Gitclone(r"https://github.com/deforum-art/deforum-for-automatic1111-webui",user_home / r"stable-diffusion-webui" / r"extensions" / r"deforum-for-automatic1111-webui" )
54
+ Gitclone(r"https://github.com/AlUlkesh/stable-diffusion-webui-images-browser",user_home / r"stable-diffusion-webui" / r"extensions"/ r"stable-diffusion-webui-images-browser")
55
+ Gitclone(r"https://github.com/camenduru/stable-diffusion-webui-huggingface",user_home / r"stable-diffusion-webui" / r"extensions" / r"stable-diffusion-webui-huggingface")
56
+ Gitclone(r"https://github.com/camenduru/sd-civitai-browser",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-civitai-browser")
57
+ Gitclone(r"https://github.com/kohya-ss/sd-webui-additional-networks",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-additional-networks")
58
+ Gitclone(r"https://github.com/Mikubill/sd-webui-controlnet",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-controlnet")
59
+ Gitclone(r"https://github.com/fkunn1326/openpose-editor",user_home / r"stable-diffusion-webui" / r"extensions" / r"openpose-editor")
60
+ Gitclone(r"https://github.com/jexom/sd-webui-depth-lib",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-depth-lib")
61
+ Gitclone(r"https://github.com/hnmr293/posex",user_home / r"stable-diffusion-webui" / r"extensions" / r"posex")
62
+ Gitclone(r"https://github.com/nonnonstop/sd-webui-3d-open-pose-editor",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-3d-open-pose-editor")
63
  #中文本地化的请解除下一行的注释
64
+ #Gitclone(r"https://github.com/dtlnor/stable-diffusion-webui-localization-zh_CN.git",user_home / r"stable-diffusion-webui" / r"extensions" / r"stable-diffusion-webui-localization-zh_CN")
65
+ Gitclone(r"https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git" , user_home / r"stable-diffusion-webui" / r"extensions" / r"a1111-sd-webui-tagcomplete")
66
+ Gitclone(r"https://github.com/camenduru/sd-webui-tunnels",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-tunnels")
67
+ Gitclone(r"https://github.com/etherealxx/batchlinks-webui",user_home / r"stable-diffusion-webui" / r"extensions" / r"batchlinks-webui")
68
+ Gitclone(r"https://github.com/catppuccin/stable-diffusion-webui",user_home / r"stable-diffusion-webui" / r"extensions" / r"stable-diffusion-webui-catppuccin")
69
+ Gitclone(r"https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg",user_home / r"stable-diffusion-webui" / r"extensions" / r"stable-diffusion-webui-rembg")
70
+ Gitclone(r"https://github.com/ashen-sensored/stable-diffusion-webui-two-shot",user_home / r"stable-diffusion-webui" / r"extensions" / r"stable-diffusion-webui-two-shot")
71
+ Gitclone(r"https://github.com/camenduru/sd_webui_stealth_pnginfo",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd_webui_stealth_pnginfo")
 
 
 
72
  os.chdir(user_home / r"stable-diffusion-webui")
 
73
  #download ControlNet models
74
  print("extensions dolwnload done .\ndownloading ControlNet models")
75
  dList =[r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11e_sd15_ip2p_fp16.safetensors",
 
111
  r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_depth_sd15v2.pth",
112
  r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_sketch_sd15v2.pth",
113
  r"https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_zoedepth_sd15v1.pth"]
114
+ for i in range(0,len(dList)): DownLoad(dList[i],user_home / r"stable-diffusion-webui" / r"extensions" / "sd-webui-controlnet" / r"models",pathlib.Path(dList[i]).name)
115
  del dList
 
116
  #download model
117
  #you can change model download address here
118
  print("ControlNet models download done.\ndownloading model")
119
+ #Stable Diffusion Checkpoint Model
120
+ #anything version4.5
121
+ DownLoad(r"https://huggingface.co/ckpt/anything-v4.0/resolve/main/anything-v4.5-pruned.ckpt",user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion",r"anything-v4.5-pruned.ckpt")
122
+ DownLoad(r"https://huggingface.co/ckpt/anything-v4.0/resolve/main/anything-v4.0.vae.pt",user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion",r"anything-v4.0.vae.pt")
123
+ #Counterfeit-V3.0
124
+ DownLoad(r"https://huggingface.co/gsdf/Counterfeit-V3.0/resolve/main/Counterfeit-V3.0_fp16.safetensors",user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion",r"Counterfeit-V3.0_fp16.safetensors")
125
+ #AbyssOrangeMix2 sfw
126
+ DownLoad(r"https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/Models/AbyssOrangeMix2/AbyssOrangeMix2_sfw.safetensors",user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion",r"AbyssOrangeMix2_sfw.safetensors")
127
+ DownLoad(r"https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/VAEs/orangemix.vae.pt",user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion",r"orangemix.vae.pt")
128
+ #MeinaPastelV5
129
+ DownLoad(r"https://huggingface.co/Meina/MeinaPastel/resolve/main/MeinaPastelV5%20-%20Baked%20VAE.safetensors",user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion",r"MeinaPastelV5_BakedVAE.safetensors")
130
+ DownLoad(r"https://huggingface.co/Meina/MeinaPastel/resolve/main/MeinaPastelV5%20-%20Without%20VAE.safetensors",user_home / r"stable-diffusion-webui" / r"models" / r"Stable-diffusion",r"MeinaPastelV5_WithoutVAE.safetensors")
 
131
 
132
+ #Lora Model
133
+ #Better Light
134
+ DownLoad(r"https://civitai.com/api/download/models/39885",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-additional-networks" / r"models"/ r"lora",r"Better_light.safetensors")
135
+ DownLoad(r"https://civitai.com/api/download/models/39885",user_home / r"stable-diffusion-webui" / r"models"/ r"lora",r"Better_light.safetensors")
136
+ #LAS
137
+ DownLoad(r"https://civitai.com/api/download/models/21065",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-additional-networks" / r"models"/ r"lora",r"LAS.safetensors")
138
+ DownLoad(r"https://civitai.com/api/download/models/21065",user_home / r"stable-diffusion-webui" / r"models"/ r"lora",r"LAS.safetensors")
139
+ #Backlighting
140
+ DownLoad(r"https://civitai.com/api/download/models/39164",user_home / r"stable-diffusion-webui" / r"extensions" / r"sd-webui-additional-networks" / r"models"/ r"lora",r"backlighting.safetensors")
141
+ DownLoad(r"https://civitai.com/api/download/models/39164",user_home / r"stable-diffusion-webui" / r"models"/ r"lora",r"backlighting.safetensors")
142
+ #GFPGAN Model
143
+ #detection Resnet50
144
+ DownLoad(r"https://github.com/xinntao/facexlib/releases/download/v0.1.0/detection_Resnet50_Final.pth",user_home / r"stable-diffusion-webui"/r"models"/r"GFPGAN",r"detection_Resnet50_Final.pth")
145
+ #parsing_parsenet
146
+ DownLoad(r"https://github.com/xinntao/facexlib/releases/download/v0.2.2/parsing_parsenet.pth",user_home / r"stable-diffusion-webui"/r"models"/r"GFPGAN",r"parsing_parsenet.pth")
147
+ #GFPGANv1.4
148
+ DownLoad(r"https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.4.pth",user_home / r"stable-diffusion-webui"/r"models"/r"GFPGAN",r"GFPGANv1.4.pth")
149
+ #strt Stable Diffusion Webui
150
  print("Done\nStarting Webui...")
151
  os.chdir(user_home / r"stable-diffusion-webui")
152
  while True:
153
+ ret=subprocess.run([executable ,user_home / r"stable-diffusion-webui" / 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")])
154
  if(ret.returncode == 0 ):
155
  del ret
156
  gc.collect()
157
  else :
158
  del ret
 
159
  del os ,user_home ,pyexecutable ,subprocess
config.json CHANGED
@@ -1,266 +1,11 @@
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
  }
 
1
  {
2
+ "sd_model_checkpoint": "anything-v4.5-pruned.ckpt",
3
+ "sd_vae": "anything-v4.0.vae.pt",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  "quicksettings_list": [
5
  "sd_model_checkpoint",
6
+ "sd_vae",
7
+ "ESRGAN_tile",
8
+ "code_former_weight",
9
+ "token_merging_ratio"
10
+ ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  }
requirements.txt CHANGED
@@ -7,10 +7,7 @@ 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
@@ -36,3 +33,5 @@ torchsde
36
  safetensors
37
  psutil
38
  rich
 
 
 
7
  blendmodes
8
  accelerate
9
  basicsr
 
 
10
  gfpgan
 
11
  numpy
12
  omegaconf
13
  opencv-contrib-python
 
33
  safetensors
34
  psutil
35
  rich
36
+ tomesd
37
+