Delete config.py
Browse files
config.py
DELETED
@@ -1,176 +0,0 @@
|
|
1 |
-
'''
|
2 |
-
文件路径说明:
|
3 |
-
|
4 |
-
- []内的是下载文件的目标目录,可以是相对目录也可以是觉得路径
|
5 |
-
- []的下一行就是文件列表,可以是下载地址、git仓库、文件路径、文件夹路径,且支持通配符
|
6 |
-
- 如果需要对下载的文件重命名,可以在下载链接前面写上文件名后加一个:分开文件名和下载地址
|
7 |
-
- 如果需要下载到其他目录,可以使用同样的格式写其他目录
|
8 |
-
'''
|
9 |
-
|
10 |
-
# 这个列表仅加载一次 且会等待加载完成再开始安装sd
|
11 |
-
before_downloading = '''
|
12 |
-
[extensions] # 插件
|
13 |
-
https://github.com/dtlnor/stable-diffusion-webui-localization-zh_CN.git
|
14 |
-
https://github.com/AlUlkesh/stable-diffusion-webui-images-browser.git
|
15 |
-
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
|
16 |
-
https://github.com/Mikubill/sd-webui-controlnet.git
|
17 |
-
https://github.com/LianZiZhou/sd-webui-pixink-console.git
|
18 |
-
https://github.com/ilian6806/stable-diffusion-webui-state.git
|
19 |
-
https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111.git
|
20 |
-
https://github.com/Bing-su/adetailer.git
|
21 |
-
https://github.com/civitai/sd_civitai_extension.git
|
22 |
-
https://github.com/zanllp/sd-webui-infinite-image-browsing.git
|
23 |
-
https://github.com/viyiviyi/stable-diffusion-webui-zoomimage.git
|
24 |
-
|
25 |
-
# 如果你有模型文件需要在启动前加载,可以写在这个下面对应位置
|
26 |
-
|
27 |
-
[models/Stable-diffusion] # 大模型列表
|
28 |
-
|
29 |
-
[models/hypernetworks] # hypernetworks文件列表
|
30 |
-
|
31 |
-
[models/embeddings] # embeddings文件列表
|
32 |
-
|
33 |
-
[models/Lora] # Lora文件列表
|
34 |
-
|
35 |
-
[models/VAE] # VAE文件列表
|
36 |
-
|
37 |
-
[extensions/sd-webui-controlnet/models] # controlnet插件的模型列表
|
38 |
-
|
39 |
-
'''
|
40 |
-
|
41 |
-
# 这个列表仅加载一次 且不会等待加载完成
|
42 |
-
async_downloading='''
|
43 |
-
[extensions] # 插件 如果你没有使用ngrok或者frpc,请不要把插件放在这里加载,因为这里的文件可能在webui启动后才加载完成
|
44 |
-
|
45 |
-
[models/Stable-diffusion] # 大模型列表
|
46 |
-
https://huggingface.co/viyi/testing_models/resolve/main/mg-LBG.safetensors
|
47 |
-
容华_国风_SDXL.safetensors:https://civitai.com/api/download/models/151978
|
48 |
-
|
49 |
-
[models/hypernetworks] # hypernetworks文件列表
|
50 |
-
|
51 |
-
[models/embeddings] # embeddings文件列表
|
52 |
-
|
53 |
-
[models/Lora] # Lora文件列表
|
54 |
-
Genshin_Impact_all-in-one.safetensors:https://civitai.com/api/download/models/116970
|
55 |
-
https://civitai.com/api/download/models/117151 # Clothing +/- Adjuster 衣物增/减 LoRA
|
56 |
-
https://civitai.com/api/download/models/62833 # Detail Tweaker LoRA (细节调整LoRA)
|
57 |
-
|
58 |
-
[models/VAE] # VAE文件列表
|
59 |
-
{input_path}/vae-ft-ema-prunedsafetensors/vae-ft-ema-560000-ema-pruned.safetensors
|
60 |
-
{input_path}/vae-ft-ema-prunedsafetensors/vae-ft-mse-840000-ema-pruned.safetensors
|
61 |
-
https://huggingface.co/stabilityai/sd-vae-ft-ema-original/resolve/main/vae-ft-ema-560000-ema-pruned.safetensors
|
62 |
-
https://huggingface.co/WarriorMama777/OrangeMixs/resolve/main/VAEs/orangemix.vae.pt
|
63 |
-
sdxl_vae.safetensors:https://civitai.com/api/download/models/130720?type=VAE # sdxl模型需要sdxl的vae
|
64 |
-
|
65 |
-
[extensions/sd-webui-controlnet/models] # controlnet插件的模型列表
|
66 |
-
https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11e_sd15_ip2p_fp16.safetensors
|
67 |
-
https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11e_sd15_shuffle_fp16.safetensors
|
68 |
-
https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11f1e_sd15_tile_fp16.safetensors
|
69 |
-
https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11f1p_sd15_depth_fp16.safetensors
|
70 |
-
https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_canny_fp16.safetensors
|
71 |
-
https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_inpaint_fp16.safetensors
|
72 |
-
https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_lineart_fp16.safetensors
|
73 |
-
https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_mlsd_fp16.safetensors
|
74 |
-
https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_normalbae_fp16.safetensors
|
75 |
-
https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_openpose_fp16.safetensors
|
76 |
-
https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_scribble_fp16.safetensors
|
77 |
-
https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_seg_fp16.safetensors
|
78 |
-
https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_softedge_fp16.safetensors
|
79 |
-
https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15s2_lineart_anime_fp16.safetensors
|
80 |
-
https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11u_sd15_tile_fp16.safetensors
|
81 |
-
'''
|
82 |
-
|
83 |
-
# 这个列表每次 启动都会加载一次,且一定按照顺序加载
|
84 |
-
before_start_sync_downloading = '''
|
85 |
-
|
86 |
-
# 如果你需要每次启动都加载一下文件,可以写在这。(比如测试路径是否正确的时候)
|
87 |
-
|
88 |
-
[models/Stable-diffusion] # 大模型列表
|
89 |
-
|
90 |
-
[models/hypernetworks] # hypernetworks文件列表
|
91 |
-
|
92 |
-
[models/embeddings] # embeddings文件列表
|
93 |
-
|
94 |
-
[models/Lora] # Lora文件列表
|
95 |
-
|
96 |
-
[models/VAE] # VAE文件列表
|
97 |
-
|
98 |
-
[extensions/sd-webui-controlnet/models] # controlnet插件的模型列表
|
99 |
-
|
100 |
-
'''
|
101 |
-
|
102 |
-
# sd启动参数
|
103 |
-
sd_start_args='''
|
104 |
-
# --ckpt=mg-Tender.safetensors # 默认模型名称,路径不能包含空格
|
105 |
-
--disable-safe-unpickle
|
106 |
-
--deepdanbooru
|
107 |
-
--no-hashing
|
108 |
-
--no-download-sd-model
|
109 |
-
--administrator
|
110 |
-
--skip-torch-cuda-test
|
111 |
-
--skip-version-check
|
112 |
-
--disable-nan-check
|
113 |
-
# --opt-sdp-attention
|
114 |
-
--opt-sdp-no-mem-attention
|
115 |
-
--xformers-flash-attention
|
116 |
-
--xformers
|
117 |
-
--api
|
118 |
-
--listen
|
119 |
-
--lowram
|
120 |
-
--no-gradio-queue
|
121 |
-
# --share
|
122 |
-
--disable-console-progressbars
|
123 |
-
--no-half-vae
|
124 |
-
# --no-half #关闭半精度
|
125 |
-
# --enable-console-prompts
|
126 |
-
# --nowebui
|
127 |
-
# --api-auth=2333:6666 # api密码
|
128 |
-
# --gradio-auth=2333:6666 # webui密码
|
129 |
-
'''
|
130 |
-
|
131 |
-
useGooglrDrive = True # 连接到谷歌云盘 在google colab环境才会生效
|
132 |
-
# 启用Ngrok 如果没有配置文件即使开启也无效
|
133 |
-
useNgrok=True
|
134 |
-
# 启用frp 如果没有配置文件即使开启也无效
|
135 |
-
useFrpc=True
|
136 |
-
|
137 |
-
#文件或直接填配置
|
138 |
-
ngrok_config_or_file = '''
|
139 |
-
{input_path}/configs/ngrok_token.txt
|
140 |
-
'''
|
141 |
-
frp_config_or_file = '''
|
142 |
-
{input_path}/configs/frpc_litechat.ini
|
143 |
-
'''
|
144 |
-
frp_ssl_dir = '''
|
145 |
-
{input_path}/configs/litechat_nginx
|
146 |
-
'''
|
147 |
-
|
148 |
-
# 配置启动参数
|
149 |
-
server_port=7860 # webui 默认端口
|
150 |
-
|
151 |
-
# 仓库地址 这是修改过界面布局顺序的webui,不定期同步到官方版本
|
152 |
-
# 如果要使用官方版本,改成这个: https://github.com/AUTOMATIC1111/stable-diffusion-webui
|
153 |
-
sd_git_repo='https://github.com/viyiviyi/stable-diffusion-webui.git -b local'
|
154 |
-
# 配置文件,包括webui的设置和UI默认值,如果要自定义,fork这个仓库后修改并把地址替换这个地址
|
155 |
-
sd_config_git_repu = 'https://github.com/viyiviyi/sd-configs.git'
|
156 |
-
# 设置文件保存路径 当使用谷歌云盘时非常有用
|
157 |
-
setting_file = '{output_path}/configs/config.json'
|
158 |
-
ui_config_file = '{output_path}/configs/ui-config.json'
|
159 |
-
|
160 |
-
git_proxy="https://ghproxy.com/"
|
161 |
-
|
162 |
-
link_instead_of_copy = True # 下载或加载Input的文件时是使用链接还是复制的方式加载到目标目录
|
163 |
-
hidden_console_info = False # 是否隐藏大部分的控制台内容
|
164 |
-
|
165 |
-
reLoad = True
|
166 |
-
# 如果需要重新安装,请注释下面这一行
|
167 |
-
reLoad = False
|
168 |
-
|
169 |
-
skip_start = False
|
170 |
-
|
171 |
-
# 输出目录 如果要指定在执行目录外的目录,请写绝对路径
|
172 |
-
# 如果需要将输出的图片指定到其他目录,可以设置这里的值
|
173 |
-
output_path = '/root/autodl-fs/sd_output'
|
174 |
-
|
175 |
-
input_path = '/kaggle/Input'
|
176 |
-
# 安装路径说明,会安装在运行 sdwui_install 时的目录
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|