Update v2_3.py
Browse files
v2_3.py
CHANGED
@@ -110,7 +110,7 @@ subprocess.run(["apt", "-y", "install", "-qq", "aria2"])
|
|
110 |
subprocess.run(["pip", "install", "-q", "xformers==0.0.20", "triton==2.0.0", "-U"])
|
111 |
|
112 |
# 使用subprocess运行git clone命令
|
113 |
-
subprocess.run(["git", "clone", "-b", "v2.5", f"https://github.com/camenduru/
|
114 |
subprocess.run(["git", "clone", "https://huggingface.co/embed/negative", "/content/ui/embeddings/negative"])
|
115 |
subprocess.run(["git", "clone", "https://huggingface.co/embed/lora", "/content/ui/models/Lora/positive"])
|
116 |
|
@@ -157,30 +157,30 @@ def run_git_clone(repo_url, destination):
|
|
157 |
extensions_path = "/content/ui/extensions"
|
158 |
|
159 |
extensions_to_clone = [
|
160 |
-
(f"https://github.com/deforum-art/deforum-for-automatic1111-
|
161 |
-
(f"https://github.com/deforum-art/sd-
|
162 |
-
(f"https://github.com/butaixianran/
|
163 |
-
(f"https://github.com/Mikubill/
|
164 |
(f"https://github.com/fkunn1326/openpose-editor", f"{extensions_path}/openpose-editor"),
|
165 |
-
(f"https://github.com/camenduru/
|
166 |
-
(f"https://github.com/kohya-ss/
|
167 |
(f"https://github.com/hnmr293/posex", f"{extensions_path}/posex"),
|
168 |
-
(f"https://github.com/nonnonstop/
|
169 |
-
(f"https://github.com/camenduru/
|
170 |
-
(f"https://github.com/etherealxx/batchlinks-
|
171 |
-
(f"https://github.com/catppuccin/
|
172 |
-
(f"https://github.com/AUTOMATIC1111/
|
173 |
-
(f"https://github.com/ashen-sensored/
|
174 |
-
(f"https://github.com/thomasasfk/
|
175 |
(f"https://github.com/Bing-su/adetailer", f"{extensions_path}/adetailer"),
|
176 |
-
(f"https://github.com/mcmonkeyprojects/sd-dynamic-thresholding", f"{extensions_path}/
|
177 |
-
(f"https://github.com/adieyal/
|
178 |
-
(f"https://github.com/AUTOMATIC1111/
|
179 |
-
(f"https://github.com/continue-revolution/
|
180 |
-
(f"https://github.com/pkuliyi2015/
|
181 |
-
(f"https://github.com/Physton/
|
182 |
-
(f"https://github.com/journey-ad/
|
183 |
-
(f"https://github.com/Bobo-1125/
|
184 |
]
|
185 |
|
186 |
for repo_url, destination in extensions_to_clone:
|
@@ -222,7 +222,7 @@ for path in [launch_py_path + '.bak', shared_py_path + '.bak']:
|
|
222 |
|
223 |
|
224 |
# 汉化
|
225 |
-
run_git_clone(f"https://github.com/dtlnor/
|
226 |
|
227 |
# 删除指定插件文件夹
|
228 |
download_task1 = False # 是否删除指定插件文件夹
|
@@ -321,7 +321,7 @@ for path in [launch_py_path + '.bak', shared_py_path + '.bak']:
|
|
321 |
# 下载任务1
|
322 |
CS_download_task1 = False
|
323 |
CS_url1 = "https://civitai.com/api/download/models/17701"
|
324 |
-
CS_destination_folder1 = f"/content/ui/models/
|
325 |
CS_filename1 = "anypastelAnythingV45_anypastelAnythingV45.safetensors"
|
326 |
CS_target1 = f"{CS_destination_folder1}/{CS_filename1}"
|
327 |
|
@@ -334,7 +334,7 @@ if CS_download_task1:
|
|
334 |
# 下载任务2
|
335 |
CS_download_task2 = False
|
336 |
CS_url2 = "https://civitai.com/api/download/models/26633?type=Model&format=PickleTensor&size=full&fp=fp16"
|
337 |
-
CS_destination_folder2 = f"/content/ui/models/
|
338 |
CS_filename2 = "07CounterfeitV2503_10.ckpt"
|
339 |
CS_target2 = f"{CS_destination_folder2}/{CS_filename2}"
|
340 |
|
@@ -347,7 +347,7 @@ if CS_download_task2:
|
|
347 |
# 下载任务3
|
348 |
CS_download_task3 = True
|
349 |
CS_url3 = "https://civitai.com/api/download/models/90854"
|
350 |
-
CS_destination_folder3 = f"/content/ui/models/
|
351 |
CS_filename3 = "AnythingV5Ink.safetensors"
|
352 |
CS_target3 = f"{CS_destination_folder3}/{CS_filename3}"
|
353 |
|
@@ -360,7 +360,7 @@ if CS_download_task3:
|
|
360 |
# 下载任务4
|
361 |
CS_download_task4 = False
|
362 |
CS_url4 = "https://civitai.com/api/download/models/57618"
|
363 |
-
CS_destination_folder4 = f"/content/ui/models/
|
364 |
CS_filename4 = "CounterfeitV30_v30.safetensors"
|
365 |
CS_target4 = f"{CS_destination_folder4}/{CS_filename4}"
|
366 |
|
@@ -373,7 +373,7 @@ if CS_download_task4:
|
|
373 |
# 下载任务5
|
374 |
CS_download_task5 = False
|
375 |
CS_url5 = "https://civitai.com/api/download/models/1356"
|
376 |
-
CS_destination_folder5 = f"/content/ui/models/
|
377 |
CS_filename5 = "dreamlike10_10.ckpt"
|
378 |
CS_target5 = f"{CS_destination_folder5}/{CS_filename5}"
|
379 |
|
@@ -386,7 +386,7 @@ if CS_download_task5:
|
|
386 |
# 下载任务6
|
387 |
CS_download_task6 = True
|
388 |
CS_url6 = "https://civitai.com/api/download/models/17233"
|
389 |
-
CS_destination_folder6 = f"/content/ui/models/
|
390 |
CS_filename6 = "abyssorangemix3AOM3_aom3a1b.safetensors"
|
391 |
CS_target6 = f"{CS_destination_folder6}/{CS_filename6}"
|
392 |
|
@@ -399,7 +399,7 @@ if CS_download_task6:
|
|
399 |
# 下载任务7
|
400 |
CS_download_task7 = False
|
401 |
CS_url7 = ""
|
402 |
-
CS_destination_folder7 = f"/content/ui/models/
|
403 |
CS_filename7 = ""
|
404 |
CS_target7 = f"{CS_destination_folder7}/{CS_filename7}"
|
405 |
|
@@ -412,7 +412,7 @@ if CS_download_task7:
|
|
412 |
# 下载任务8
|
413 |
CS_download_task8 = False
|
414 |
CS_url8 = ""
|
415 |
-
CS_destination_folder8 = f"/content/ui/models/
|
416 |
CS_filename8 = ""
|
417 |
CS_target8 = f"{CS_destination_folder8}/{CS_filename8}"
|
418 |
|
@@ -425,7 +425,7 @@ if CS_download_task8:
|
|
425 |
# 下载任务9
|
426 |
CS_download_task9 = False
|
427 |
CS_url9 = ""
|
428 |
-
CS_destination_folder9 = f"/content/ui/models/
|
429 |
CS_filename9 = ""
|
430 |
CS_target9 = f"{CS_destination_folder9}/{CS_filename9}"
|
431 |
|
@@ -438,7 +438,7 @@ if CS_download_task9:
|
|
438 |
# 下载任务10
|
439 |
CS_download_task10 = False
|
440 |
CS_url10 = ""
|
441 |
-
CS_destination_folder10 = f"/content/ui/models/
|
442 |
CS_filename10 = ""
|
443 |
CS_target10 = f"{CS_destination_folder10}/{CS_filename10}"
|
444 |
|
@@ -451,7 +451,7 @@ if CS_download_task10:
|
|
451 |
# 下载任务11
|
452 |
CS_download_task11 = False
|
453 |
CS_url11 = ""
|
454 |
-
CS_destination_folder11 = f"/content/ui/models/
|
455 |
CS_filename11 = ""
|
456 |
CS_target11 = f"{CS_destination_folder11}/{CS_filename11}"
|
457 |
|
@@ -464,7 +464,7 @@ if CS_download_task11:
|
|
464 |
# 下载任务12
|
465 |
CS_download_task12 = False
|
466 |
CS_url12 = ""
|
467 |
-
CS_destination_folder12 = f"/content/ui/models/
|
468 |
CS_filename12 = ""
|
469 |
CS_target12 = f"{CS_destination_folder12}/{CS_filename12}"
|
470 |
|
@@ -477,7 +477,7 @@ if CS_download_task12:
|
|
477 |
# 下载任务13
|
478 |
CS_download_task13 = False
|
479 |
CS_url13 = ""
|
480 |
-
CS_destination_folder13 = f"/content/ui/models/
|
481 |
CS_filename13 = ""
|
482 |
CS_target13 = f"{CS_destination_folder13}/{CS_filename13}"
|
483 |
|
|
|
110 |
subprocess.run(["pip", "install", "-q", "xformers==0.0.20", "triton==2.0.0", "-U"])
|
111 |
|
112 |
# 使用subprocess运行git clone命令
|
113 |
+
subprocess.run(["git", "clone", "-b", "v2.5", f"https://github.com/camenduru/{st}", "/content/ui"])
|
114 |
subprocess.run(["git", "clone", "https://huggingface.co/embed/negative", "/content/ui/embeddings/negative"])
|
115 |
subprocess.run(["git", "clone", "https://huggingface.co/embed/lora", "/content/ui/models/Lora/positive"])
|
116 |
|
|
|
157 |
extensions_path = "/content/ui/extensions"
|
158 |
|
159 |
extensions_to_clone = [
|
160 |
+
(f"https://github.com/deforum-art/deforum-for-automatic1111-{w}", f"{extensions_path}/deforum-for-automatic1111-{w}"),
|
161 |
+
(f"https://github.com/deforum-art/sd-{w}-deforum", f"{extensions_path}/sd-{w}-deforum"),
|
162 |
+
(f"https://github.com/butaixianran/{b}-{d}-{w}-Civitai-Helper", f"{extensions_path}/{b}-{d}-{w}-Civitai-Helper"),
|
163 |
+
(f"https://github.com/Mikubill/{c}-{w}-controlnet", f"{extensions_path}/{c}-{w}-controlnet"),
|
164 |
(f"https://github.com/fkunn1326/openpose-editor", f"{extensions_path}/openpose-editor"),
|
165 |
+
(f"https://github.com/camenduru/{a}-{d}-{w}-huggingface", f"{extensions_path}/{a}-{d}-{w}-huggingface"),
|
166 |
+
(f"https://github.com/kohya-ss/{c}-{w}-additional-networks", f"{extensions_path}/{c}-{w}-additional-networks"),
|
167 |
(f"https://github.com/hnmr293/posex", f"{extensions_path}/posex"),
|
168 |
+
(f"https://github.com/nonnonstop/{c}-{w}-3d-open-pose-editor", f"{extensions_path}/{c}-{w}-3d-open-pose-editor"),
|
169 |
+
(f"https://github.com/camenduru/{c}-{w}-tunnels", f"{extensions_path}/{c}-{w}-tunnels"),
|
170 |
+
(f"https://github.com/etherealxx/batchlinks-{w}", f"{extensions_path}/batchlinks-{w}"),
|
171 |
+
(f"https://github.com/catppuccin/{a}-{d}-{w}", f"{extensions_path}/{a}-{d}-{w}-catppuccin"),
|
172 |
+
(f"https://github.com/AUTOMATIC1111/{a}-{d}-{w}-rembg", f"{extensions_path}/{a}-{d}-{w}-rembg"),
|
173 |
+
(f"https://github.com/ashen-sensored/{a}-{d}-{w}-two-shot.git", f"{extensions_path}/{a}-{d}-{w}-two-shot"),
|
174 |
+
(f"https://github.com/thomasasfk/{c}-{w}-aspect-ratio-helper", f"{extensions_path}/{c}-{w}-aspect-ratio-helper"),
|
175 |
(f"https://github.com/Bing-su/adetailer", f"{extensions_path}/adetailer"),
|
176 |
+
(f"https://github.com/mcmonkeyprojects/sd-dynamic-thresholding", f"{extensions_path}/{c}-dynamic-thresholding"),
|
177 |
+
(f"https://github.com/adieyal/{c}-dynamic-prompts", f"{extensions_path}/{c}-dynamic-prompts"),
|
178 |
+
(f"https://github.com/AUTOMATIC1111/{a}-{d}-{w}-wildcards", f"{extensions_path}/{a}-{d}-{w}-wildcards"),
|
179 |
+
(f"https://github.com/continue-revolution/{c}-{w}-segment-anything", f"{extensions_path}/{c}-{w}-segment-anything"),
|
180 |
+
(f"https://github.com/pkuliyi2015/multi{d}-upscaler-for-automatic1111.git", f"{extensions_path}/multi{d}-upscaler-for-automatic1111"),
|
181 |
+
(f"https://github.com/Physton/{c}-{w}-prompt-all-in-one", f"{extensions_path}/{c}-{w}-prompt-all-in-one"),
|
182 |
+
(f"https://github.com/journey-ad/{c}-{w}-bilingual-localization", f"{extensions_path}/{c}-{w}-bilingual-localization"),
|
183 |
+
(f"https://github.com/Bobo-1125/{c}-{w}-oldsix-prompt-dynamic", f"{extensions_path}/{c}-{w}-oldsix-prompt-dynamic"),
|
184 |
]
|
185 |
|
186 |
for repo_url, destination in extensions_to_clone:
|
|
|
222 |
|
223 |
|
224 |
# 汉化
|
225 |
+
run_git_clone(f"https://github.com/dtlnor/{st}-localization-zh_CN", f"{extensions_path}/{st}-localization-zh_CN-main")
|
226 |
|
227 |
# 删除指定插件文件夹
|
228 |
download_task1 = False # 是否删除指定插件文件夹
|
|
|
321 |
# 下载任务1
|
322 |
CS_download_task1 = False
|
323 |
CS_url1 = "https://civitai.com/api/download/models/17701"
|
324 |
+
CS_destination_folder1 = f"/content/ui/models/{b}-{d}"
|
325 |
CS_filename1 = "anypastelAnythingV45_anypastelAnythingV45.safetensors"
|
326 |
CS_target1 = f"{CS_destination_folder1}/{CS_filename1}"
|
327 |
|
|
|
334 |
# 下载任务2
|
335 |
CS_download_task2 = False
|
336 |
CS_url2 = "https://civitai.com/api/download/models/26633?type=Model&format=PickleTensor&size=full&fp=fp16"
|
337 |
+
CS_destination_folder2 = f"/content/ui/models/{b}-{d}"
|
338 |
CS_filename2 = "07CounterfeitV2503_10.ckpt"
|
339 |
CS_target2 = f"{CS_destination_folder2}/{CS_filename2}"
|
340 |
|
|
|
347 |
# 下载任务3
|
348 |
CS_download_task3 = True
|
349 |
CS_url3 = "https://civitai.com/api/download/models/90854"
|
350 |
+
CS_destination_folder3 = f"/content/ui/models/{b}-{d}"
|
351 |
CS_filename3 = "AnythingV5Ink.safetensors"
|
352 |
CS_target3 = f"{CS_destination_folder3}/{CS_filename3}"
|
353 |
|
|
|
360 |
# 下载任务4
|
361 |
CS_download_task4 = False
|
362 |
CS_url4 = "https://civitai.com/api/download/models/57618"
|
363 |
+
CS_destination_folder4 = f"/content/ui/models/{b}-{d}"
|
364 |
CS_filename4 = "CounterfeitV30_v30.safetensors"
|
365 |
CS_target4 = f"{CS_destination_folder4}/{CS_filename4}"
|
366 |
|
|
|
373 |
# 下载任务5
|
374 |
CS_download_task5 = False
|
375 |
CS_url5 = "https://civitai.com/api/download/models/1356"
|
376 |
+
CS_destination_folder5 = f"/content/ui/models/{b}-{d}"
|
377 |
CS_filename5 = "dreamlike10_10.ckpt"
|
378 |
CS_target5 = f"{CS_destination_folder5}/{CS_filename5}"
|
379 |
|
|
|
386 |
# 下载任务6
|
387 |
CS_download_task6 = True
|
388 |
CS_url6 = "https://civitai.com/api/download/models/17233"
|
389 |
+
CS_destination_folder6 = f"/content/ui/models/{b}-{d}"
|
390 |
CS_filename6 = "abyssorangemix3AOM3_aom3a1b.safetensors"
|
391 |
CS_target6 = f"{CS_destination_folder6}/{CS_filename6}"
|
392 |
|
|
|
399 |
# 下载任务7
|
400 |
CS_download_task7 = False
|
401 |
CS_url7 = ""
|
402 |
+
CS_destination_folder7 = f"/content/ui/models/{b}-{d}"
|
403 |
CS_filename7 = ""
|
404 |
CS_target7 = f"{CS_destination_folder7}/{CS_filename7}"
|
405 |
|
|
|
412 |
# 下载任务8
|
413 |
CS_download_task8 = False
|
414 |
CS_url8 = ""
|
415 |
+
CS_destination_folder8 = f"/content/ui/models/{b}-{d}"
|
416 |
CS_filename8 = ""
|
417 |
CS_target8 = f"{CS_destination_folder8}/{CS_filename8}"
|
418 |
|
|
|
425 |
# 下载任务9
|
426 |
CS_download_task9 = False
|
427 |
CS_url9 = ""
|
428 |
+
CS_destination_folder9 = f"/content/ui/models/{b}-{d}"
|
429 |
CS_filename9 = ""
|
430 |
CS_target9 = f"{CS_destination_folder9}/{CS_filename9}"
|
431 |
|
|
|
438 |
# 下载任务10
|
439 |
CS_download_task10 = False
|
440 |
CS_url10 = ""
|
441 |
+
CS_destination_folder10 = f"/content/ui/models/{b}-{d}"
|
442 |
CS_filename10 = ""
|
443 |
CS_target10 = f"{CS_destination_folder10}/{CS_filename10}"
|
444 |
|
|
|
451 |
# 下载任务11
|
452 |
CS_download_task11 = False
|
453 |
CS_url11 = ""
|
454 |
+
CS_destination_folder11 = f"/content/ui/models/{b}-{d}"
|
455 |
CS_filename11 = ""
|
456 |
CS_target11 = f"{CS_destination_folder11}/{CS_filename11}"
|
457 |
|
|
|
464 |
# 下载任务12
|
465 |
CS_download_task12 = False
|
466 |
CS_url12 = ""
|
467 |
+
CS_destination_folder12 = f"/content/ui/models/{b}-{d}"
|
468 |
CS_filename12 = ""
|
469 |
CS_target12 = f"{CS_destination_folder12}/{CS_filename12}"
|
470 |
|
|
|
477 |
# 下载任务13
|
478 |
CS_download_task13 = False
|
479 |
CS_url13 = ""
|
480 |
+
CS_destination_folder13 = f"/content/ui/models/{b}-{d}"
|
481 |
CS_filename13 = ""
|
482 |
CS_target13 = f"{CS_destination_folder13}/{CS_filename13}"
|
483 |
|