Update app3.py
Browse files
app3.py
CHANGED
@@ -144,27 +144,7 @@ def mkdirs(path, exist_ok=True):
|
|
144 |
os.makedirs(path,exist_ok=exist_ok)
|
145 |
plugins = [
|
146 |
"https://gitcode.net/overbill1683/stable-diffusion-webui-localization-zh_Hans",
|
147 |
-
"https://gitcode.net/ranting8323/multidiffusion-upscaler-for-automatic1111",
|
148 |
-
"https://gitcode.net/ranting8323/adetailer",
|
149 |
-
"https://gitcode.net/ranting8323/sd-webui-inpaint-anything",
|
150 |
-
"https://gitcode.net/ranting8323/a1111-sd-webui-tagcomplete",
|
151 |
-
"https://gitcode.net/nightaway/sd-webui-infinite-image-browsing",
|
152 |
-
"https://openi.pcl.ac.cn/2575044704/sd-extension-system-info",
|
153 |
-
"https://openi.pcl.ac.cn/2575044704/batchlinks-webui",
|
154 |
-
'https://openi.pcl.ac.cn/2575044704/stable-diffusion-webui-localization-zh_CN',
|
155 |
-
'https://openi.pcl.ac.cn/2575044704/sd-webui-lora-block-weight',
|
156 |
-
'https://openi.pcl.ac.cn/2575044704/sd-skin-extension',
|
157 |
-
"https://kkgithub.com/thygate/stable-diffusion-webui-depthmap-script.git",
|
158 |
"https://gitcode.net/ranting8323/sd-webui-prompt-all-in-one",
|
159 |
-
"https://gitcode.net/ranting8323/sd-webui-controlnet",
|
160 |
-
"https://kkgithub.com/SignalFlagZ/sd-webui-civbrowser.git",
|
161 |
-
"https://kkgithub.com/continue-revolution/sd-webui-animatediff.git",
|
162 |
-
"https://kkkkgithub.com/aigc-apps/sd-webui-EasyPhoto.git",
|
163 |
-
"https://kkgithub.com/Iyashinouta/sd-model-downloader.git",
|
164 |
-
"https://kkgithub.com/fkunn1326/openpose-editor.git",
|
165 |
-
"https://kkgithub.com/zero01101/openOutpaint-webUI-extension.git",
|
166 |
-
"https://kkgithub.com/LonicaMewinsky/gif2gif.git",
|
167 |
-
"https://kkgithub.com/modelscope/facechain.git",
|
168 |
"https://openi.pcl.ac.cn/2575044704/Kohaku-NAI"
|
169 |
]
|
170 |
|
@@ -172,14 +152,14 @@ for plugin in plugins:
|
|
172 |
os.system(f"git clone {plugin}")
|
173 |
os.makedirs('/home/xlab-app-center/stable-diffusion-webui/models/adetailer', exist_ok=True)
|
174 |
os.chdir(f"/home/xlab-app-center/stable-diffusion-webui/models/adetailer")
|
175 |
-
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://hf-mirror.com/Bingsu/adetailer/resolve/main/hand_yolov8s.pt -d /home/xlab-app-center/stable-diffusion-webui/models/adetailer -o hand_yolov8s.pt")
|
176 |
-
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://hf-mirror.com/Bingsu/adetailer/resolve/main/hand_yolov8n.pt -d /home/xlab-app-center/stable-diffusion-webui/models/adetailer -o hand_yolov8n.pt")
|
177 |
-
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://hf-mirror.com/datasets/ACCC1380/private-model/resolve/main/kaggle/input/museum/131-half.safetensors -d /home/xlab-app-center/stable-diffusion-webui/models/Stable-diffusion -o [萌二次元]131-half.safetensors")
|
178 |
-
os.system(f"rm /home/xlab-app-center/stable-diffusion-webui/models/Stable-diffusion/*porn*.safetensors")
|
179 |
-
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://hf-mirror.com/datasets/ACCC1380/private-model/resolve/main/ba.safetensors -d /home/xlab-app-center/stable-diffusion-webui/models/Lora -o ba.safetensors")
|
180 |
-
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://hf-mirror.com/datasets/ACCC1380/private-model/resolve/main/racaco2.safetensors -d /home/xlab-app-center/stable-diffusion-webui/models/Lora -o racaco2.safetensors")
|
181 |
-
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://hf-mirror.com/coinz/Add-detail/resolve/main/add_detail.safetensors -d /home/xlab-app-center/stable-diffusion-webui/models/Lora -o add_detail.safetensors")
|
182 |
-
os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://hf-mirror.com/datasets/VASVASVAS/vae/resolve/main/pastel-waifu-diffusion.vae.pt -d /home/xlab-app-center/stable-diffusion-webui/models/VAE -o pastel-waifu-diffusion.vae.pt")
|
183 |
# os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://download.openxlab.org.cn/models/camenduru/sdxl-refiner-1.0/weight//sd_xl_refiner_1.0.safetensors -d /home/xlab-app-center/stable-diffusion-webui/models/Stable-diffusion -o sd_xl_refiner_1.0.safetensors")
|
184 |
# os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://download.openxlab.org.cn/models/camenduru/cyber-realistic/weight//cyberrealistic_v32.safetensors -d /home/xlab-app-center/stable-diffusion-webui/models/Stable-diffusion -o cyberrealistic_v32.safetensors")
|
185 |
os.chdir(f"/home/xlab-app-center/stable-diffusion-webui")
|
@@ -261,10 +241,10 @@ def start():
|
|
261 |
# print(f"proxy An error occurred: {e}")
|
262 |
try:
|
263 |
#安装环境
|
264 |
-
os.system(f"python launch.py --skip-torch-cuda-test --use-cpu=True --no-half --api --exit --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle")
|
265 |
#time.sleep(5)
|
266 |
|
267 |
-
command = "python launch.py --skip-torch-cuda-test --use-cpu=True --no-half --api --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle"
|
268 |
command1 = "python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7862 --ngrok=2bgXLjjKFvxfbuZFlR2NMZkvL8n_4WrK7f15FLtWb8p7v3oaF"
|
269 |
command2 = "python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7863 --ngrok=2CXyNlT9xGfFoL5ruI6hQV20FNq_7tbmuzS9RtyNTkyEe1J6C"
|
270 |
process = subprocess.Popen(command, shell=True)
|
|
|
144 |
os.makedirs(path,exist_ok=exist_ok)
|
145 |
plugins = [
|
146 |
"https://gitcode.net/overbill1683/stable-diffusion-webui-localization-zh_Hans",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
"https://gitcode.net/ranting8323/sd-webui-prompt-all-in-one",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
"https://openi.pcl.ac.cn/2575044704/Kohaku-NAI"
|
149 |
]
|
150 |
|
|
|
152 |
os.system(f"git clone {plugin}")
|
153 |
os.makedirs('/home/xlab-app-center/stable-diffusion-webui/models/adetailer', exist_ok=True)
|
154 |
os.chdir(f"/home/xlab-app-center/stable-diffusion-webui/models/adetailer")
|
155 |
+
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://hf-mirror.com/Bingsu/adetailer/resolve/main/hand_yolov8s.pt -d /home/xlab-app-center/stable-diffusion-webui/models/adetailer -o hand_yolov8s.pt")
|
156 |
+
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://hf-mirror.com/Bingsu/adetailer/resolve/main/hand_yolov8n.pt -d /home/xlab-app-center/stable-diffusion-webui/models/adetailer -o hand_yolov8n.pt")
|
157 |
+
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://hf-mirror.com/datasets/ACCC1380/private-model/resolve/main/kaggle/input/museum/131-half.safetensors -d /home/xlab-app-center/stable-diffusion-webui/models/Stable-diffusion -o [萌二次元]131-half.safetensors")
|
158 |
+
#os.system(f"rm /home/xlab-app-center/stable-diffusion-webui/models/Stable-diffusion/*porn*.safetensors")
|
159 |
+
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://hf-mirror.com/datasets/ACCC1380/private-model/resolve/main/ba.safetensors -d /home/xlab-app-center/stable-diffusion-webui/models/Lora -o ba.safetensors")
|
160 |
+
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://hf-mirror.com/datasets/ACCC1380/private-model/resolve/main/racaco2.safetensors -d /home/xlab-app-center/stable-diffusion-webui/models/Lora -o racaco2.safetensors")
|
161 |
+
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://hf-mirror.com/coinz/Add-detail/resolve/main/add_detail.safetensors -d /home/xlab-app-center/stable-diffusion-webui/models/Lora -o add_detail.safetensors")
|
162 |
+
#os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://hf-mirror.com/datasets/VASVASVAS/vae/resolve/main/pastel-waifu-diffusion.vae.pt -d /home/xlab-app-center/stable-diffusion-webui/models/VAE -o pastel-waifu-diffusion.vae.pt")
|
163 |
# os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://download.openxlab.org.cn/models/camenduru/sdxl-refiner-1.0/weight//sd_xl_refiner_1.0.safetensors -d /home/xlab-app-center/stable-diffusion-webui/models/Stable-diffusion -o sd_xl_refiner_1.0.safetensors")
|
164 |
# os.system(f"aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://download.openxlab.org.cn/models/camenduru/cyber-realistic/weight//cyberrealistic_v32.safetensors -d /home/xlab-app-center/stable-diffusion-webui/models/Stable-diffusion -o cyberrealistic_v32.safetensors")
|
165 |
os.chdir(f"/home/xlab-app-center/stable-diffusion-webui")
|
|
|
241 |
# print(f"proxy An error occurred: {e}")
|
242 |
try:
|
243 |
#安装环境
|
244 |
+
os.system(f"python launch.py --no-download-sd-model --skip-torch-cuda-test --use-cpu=True --no-half --api --exit --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle")
|
245 |
#time.sleep(5)
|
246 |
|
247 |
+
command = "python launch.py --no-download-sd-model --skip-torch-cuda-test --use-cpu=True --no-half --api --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle"
|
248 |
command1 = "python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7862 --ngrok=2bgXLjjKFvxfbuZFlR2NMZkvL8n_4WrK7f15FLtWb8p7v3oaF"
|
249 |
command2 = "python launch.py --api --xformers --enable-insecure-extension-access --gradio-queue --disable-safe-unpickle --port=7863 --ngrok=2CXyNlT9xGfFoL5ruI6hQV20FNq_7tbmuzS9RtyNTkyEe1J6C"
|
250 |
process = subprocess.Popen(command, shell=True)
|