Update BuShu.py
Browse files
BuShu.py
CHANGED
|
@@ -122,39 +122,39 @@ print ("开始安装插件...")
|
|
| 122 |
def run_git_clone(repo_url, destination):
|
| 123 |
subprocess.run(["git", "clone", repo_url, destination])
|
| 124 |
|
| 125 |
-
extensions_path = "/
|
| 126 |
|
| 127 |
extensions_to_clone = [
|
| 128 |
(f"https://github.com/deforum-art/deforum-for-automatic1111-{w}", f"{extensions_path}/deforum-for-automatic1111-{w}"),
|
| 129 |
(f"https://github.com/deforum-art/sd-{w}-deforum", f"{extensions_path}/sd-{w}-deforum"),
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
|
| 159 |
]
|
| 160 |
|
|
@@ -179,51 +179,51 @@ print ("安装可选模块...")
|
|
| 179 |
|
| 180 |
# CN
|
| 181 |
if CONTROLNET:
|
| 182 |
-
os.makedirs('/
|
| 183 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11e_sd15_ip2p_fp16.safetensors', '/
|
| 184 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11e_sd15_shuffle_fp16.safetensors', '/
|
| 185 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_canny_fp16.safetensors', '/
|
| 186 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11f1p_sd15_depth_fp16.safetensors', '/
|
| 187 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_inpaint_fp16.safetensors', '/
|
| 188 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_lineart_fp16.safetensors', '/
|
| 189 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_mlsd_fp16.safetensors', '/
|
| 190 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_normalbae_fp16.safetensors', '/
|
| 191 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_openpose_fp16.safetensors', '/
|
| 192 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_scribble_fp16.safetensors', '/
|
| 193 |
-
#wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_seg_fp16.safetensors', '/
|
| 194 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_softedge_fp16.safetensors', '/
|
| 195 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15s2_lineart_anime_fp16.safetensors', '/
|
| 196 |
-
#wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11e_sd15_tile_fp16.yaml', '/
|
| 197 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11e_sd15_ip2p_fp16.yaml', '/
|
| 198 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11e_sd15_shuffle_fp16.yaml', '/
|
| 199 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_canny_fp16.yaml', '/
|
| 200 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11f1p_sd15_depth_fp16.yaml', '/
|
| 201 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_inpaint_fp16.yaml', '/
|
| 202 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_lineart_fp16.yaml', '/
|
| 203 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_mlsd_fp16.yaml', '/
|
| 204 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_normalbae_fp16.yaml', '/
|
| 205 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_openpose_fp16.yaml', '/
|
| 206 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_scribble_fp16.yaml', '/
|
| 207 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_seg_fp16.yaml', '/
|
| 208 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_softedge_fp16.yaml', '/
|
| 209 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15s2_lineart_anime_fp16.yaml', '/
|
| 210 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11f1e_sd15_tile_fp16.yaml', '/
|
| 211 |
|
| 212 |
# T2I
|
| 213 |
if T2I:
|
| 214 |
-
os.makedirs('/
|
| 215 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_style_sd14v1.pth', '/
|
| 216 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_sketch_sd14v1.pth', '/
|
| 217 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_seg_sd14v1.pth', '/
|
| 218 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_openpose_sd14v1.pth', '/
|
| 219 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_keypose_sd14v1.pth', '/
|
| 220 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_depth_sd14v1.pth', '/
|
| 221 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_color_sd14v1.pth', '/
|
| 222 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_canny_sd14v1.pth', '/
|
| 223 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_canny_sd15v2.pth', '/
|
| 224 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_depth_sd15v2.pth', '/
|
| 225 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_sketch_sd15v2.pth', '/
|
| 226 |
-
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_zoedepth_sd15v1.pth', '/
|
| 227 |
|
| 228 |
|
| 229 |
|
|
@@ -233,7 +233,7 @@ if T2I:
|
|
| 233 |
print ("开始下载Checkpoints/safetensors等大模型")
|
| 234 |
# Checkpoints/safetensors等大模型下载
|
| 235 |
# 下载任务1
|
| 236 |
-
CS_destination_folder1 = f"/
|
| 237 |
CS_target1 = f"{CS_destination_folder1}/{CS_filename1}"
|
| 238 |
|
| 239 |
if CS_download1:
|
|
@@ -243,7 +243,7 @@ if CS_download1:
|
|
| 243 |
f.write(response.content)
|
| 244 |
|
| 245 |
# 下载任务2
|
| 246 |
-
CS_destination_folder2 = f"/
|
| 247 |
CS_target2 = f"{CS_destination_folder2}/{CS_filename2}"
|
| 248 |
|
| 249 |
if CS_download2:
|
|
@@ -253,7 +253,7 @@ if CS_download2:
|
|
| 253 |
f.write(response.content)
|
| 254 |
|
| 255 |
# 下载任务3
|
| 256 |
-
CS_destination_folder3 = f"/
|
| 257 |
CS_target3 = f"{CS_destination_folder3}/{CS_filename3}"
|
| 258 |
|
| 259 |
if CS_download3:
|
|
@@ -263,7 +263,7 @@ if CS_download3:
|
|
| 263 |
f.write(response.content)
|
| 264 |
|
| 265 |
# 下载任务4
|
| 266 |
-
CS_destination_folder4 = f"/
|
| 267 |
CS_target4 = f"{CS_destination_folder4}/{CS_filename4}"
|
| 268 |
|
| 269 |
if CS_download4:
|
|
@@ -273,7 +273,7 @@ if CS_download4:
|
|
| 273 |
f.write(response.content)
|
| 274 |
|
| 275 |
# 下载任务5
|
| 276 |
-
CS_destination_folder5 = f"/
|
| 277 |
CS_target5 = f"{CS_destination_folder5}/{CS_filename5}"
|
| 278 |
|
| 279 |
if CS_download5:
|
|
@@ -283,7 +283,7 @@ if CS_download5:
|
|
| 283 |
f.write(response.content)
|
| 284 |
|
| 285 |
# 下载任务6
|
| 286 |
-
CS_destination_folder6 = f"/
|
| 287 |
CS_target6 = f"{CS_destination_folder6}/{CS_filename6}"
|
| 288 |
|
| 289 |
if CS_download6:
|
|
@@ -293,7 +293,7 @@ if CS_download6:
|
|
| 293 |
f.write(response.content)
|
| 294 |
|
| 295 |
# 下载任务7
|
| 296 |
-
CS_destination_folder7 = f"/
|
| 297 |
CS_target7 = f"{CS_destination_folder7}/{CS_filename7}"
|
| 298 |
|
| 299 |
if CS_download7:
|
|
@@ -303,7 +303,7 @@ if CS_download7:
|
|
| 303 |
f.write(response.content)
|
| 304 |
|
| 305 |
# 下载任务8
|
| 306 |
-
CS_destination_folder8 = f"/
|
| 307 |
CS_target8 = f"{CS_destination_folder8}/{CS_filename8}"
|
| 308 |
|
| 309 |
if CS_download8:
|
|
@@ -313,7 +313,7 @@ if CS_download8:
|
|
| 313 |
f.write(response.content)
|
| 314 |
|
| 315 |
# 下载任务9
|
| 316 |
-
CS_destination_folder9 = f"/
|
| 317 |
CS_target9 = f"{CS_destination_folder9}/{CS_filename9}"
|
| 318 |
|
| 319 |
if CS_download9:
|
|
@@ -323,7 +323,7 @@ if CS_download9:
|
|
| 323 |
f.write(response.content)
|
| 324 |
|
| 325 |
# 下载任务10
|
| 326 |
-
CS_destination_folder10 = f"/
|
| 327 |
CS_target10 = f"{CS_destination_folder10}/{CS_filename10}"
|
| 328 |
|
| 329 |
if CS_download10:
|
|
@@ -333,7 +333,7 @@ if CS_download10:
|
|
| 333 |
f.write(response.content)
|
| 334 |
|
| 335 |
# 下载任务11
|
| 336 |
-
CS_destination_folder11 = f"/
|
| 337 |
CS_target11 = f"{CS_destination_folder11}/{CS_filename11}"
|
| 338 |
|
| 339 |
if CS_download11:
|
|
@@ -343,7 +343,7 @@ if CS_download11:
|
|
| 343 |
f.write(response.content)
|
| 344 |
|
| 345 |
# 下载任务12
|
| 346 |
-
CS_destination_folder12 = f"/
|
| 347 |
CS_target12 = f"{CS_destination_folder12}/{CS_filename12}"
|
| 348 |
|
| 349 |
if CS_download12:
|
|
@@ -353,7 +353,7 @@ if CS_download12:
|
|
| 353 |
f.write(response.content)
|
| 354 |
|
| 355 |
# 下载任务13
|
| 356 |
-
CS_destination_folder13 = f"/
|
| 357 |
CS_target13 = f"{CS_destination_folder13}/{CS_filename13}"
|
| 358 |
|
| 359 |
if CS_download13:
|
|
@@ -367,7 +367,7 @@ if CS_download13:
|
|
| 367 |
|
| 368 |
print("开始下载Lora模型")
|
| 369 |
# Lora任务1
|
| 370 |
-
Lora_destination_folder1 = "/
|
| 371 |
Lora_target1 = os.path.join(Lora_destination_folder1, Lora_filename1)
|
| 372 |
|
| 373 |
if Lora_download1:
|
|
@@ -376,7 +376,7 @@ if Lora_download1:
|
|
| 376 |
f.write(response.content)
|
| 377 |
|
| 378 |
# Lora任务2
|
| 379 |
-
Lora_destination_folder2 = "/
|
| 380 |
Lora_target2 = os.path.join(Lora_destination_folder2, Lora_filename2)
|
| 381 |
|
| 382 |
if Lora_download2:
|
|
@@ -385,7 +385,7 @@ if Lora_download2:
|
|
| 385 |
f.write(response.content)
|
| 386 |
|
| 387 |
# Lora任务3
|
| 388 |
-
Lora_destination_folder3 = "/
|
| 389 |
Lora_target3 = os.path.join(Lora_destination_folder3, Lora_filename3)
|
| 390 |
|
| 391 |
if Lora_download3:
|
|
@@ -425,7 +425,7 @@ if Lora_download6:
|
|
| 425 |
|
| 426 |
print ("开始下载VAE模型")
|
| 427 |
# VAE任务1
|
| 428 |
-
VAE_destination_folder1 = "/
|
| 429 |
VAE_target1 = f"{VAE_destination_folder1}/{VAE_filename1}"
|
| 430 |
|
| 431 |
if VAE_download1:
|
|
@@ -434,7 +434,7 @@ if VAE_download1:
|
|
| 434 |
file.write(response.content)
|
| 435 |
|
| 436 |
# VAE任务2
|
| 437 |
-
VAE_destination_folder2 = "/
|
| 438 |
VAE_target2 = f"{VAE_destination_folder2}/{VAE_filename2}"
|
| 439 |
|
| 440 |
if VAE_download2:
|
|
@@ -443,7 +443,7 @@ if VAE_download2:
|
|
| 443 |
file.write(response.content)
|
| 444 |
|
| 445 |
# VAE任务3
|
| 446 |
-
VAE_destination_folder3 = "/
|
| 447 |
VAE_target3 = f"{VAE_destination_folder3}/{VAE_filename3}"
|
| 448 |
|
| 449 |
if VAE_download3:
|
|
@@ -452,7 +452,7 @@ if VAE_download3:
|
|
| 452 |
file.write(response.content)
|
| 453 |
|
| 454 |
# VAE任务4
|
| 455 |
-
VAE_destination_folder4 = "/
|
| 456 |
VAE_target4 = f"{VAE_destination_folder4}/{VAE_filename4}"
|
| 457 |
|
| 458 |
if VAE_download4:
|
|
@@ -461,7 +461,7 @@ if VAE_download4:
|
|
| 461 |
file.write(response.content)
|
| 462 |
|
| 463 |
# VAE任务5
|
| 464 |
-
VAE_destination_folder5 = "/
|
| 465 |
VAE_target5 = f"{VAE_destination_folder5}/{VAE_filename5}"
|
| 466 |
|
| 467 |
if VAE_download5:
|
|
@@ -470,7 +470,7 @@ if VAE_download5:
|
|
| 470 |
file.write(response.content)
|
| 471 |
|
| 472 |
# VAE任务6
|
| 473 |
-
VAE_destination_folder6 = "/
|
| 474 |
VAE_target6 = f"{VAE_destination_folder6}/{VAE_filename6}"
|
| 475 |
|
| 476 |
if VAE_download6:
|
|
@@ -479,7 +479,7 @@ if VAE_download6:
|
|
| 479 |
file.write(response.content)
|
| 480 |
|
| 481 |
# VAE任务7
|
| 482 |
-
VAE_destination_folder7 = "/
|
| 483 |
VAE_target7 = f"{VAE_destination_folder7}/{VAE_filename7}"
|
| 484 |
|
| 485 |
if VAE_download7:
|
|
@@ -488,7 +488,7 @@ if VAE_download7:
|
|
| 488 |
file.write(response.content)
|
| 489 |
|
| 490 |
# VAE任务8
|
| 491 |
-
VAE_destination_folder8 = "/
|
| 492 |
VAE_target8 = f"{VAE_destination_folder8}/{VAE_filename8}"
|
| 493 |
|
| 494 |
if VAE_download8:
|
|
@@ -497,7 +497,7 @@ if VAE_download8:
|
|
| 497 |
file.write(response.content)
|
| 498 |
|
| 499 |
# VAE任务9
|
| 500 |
-
VAE_destination_folder9 = "/
|
| 501 |
VAE_target9 = f"{VAE_destination_folder9}/{VAE_filename9}"
|
| 502 |
|
| 503 |
if VAE_download9:
|
|
@@ -506,7 +506,7 @@ if VAE_download9:
|
|
| 506 |
file.write(response.content)
|
| 507 |
|
| 508 |
# VAE任务10
|
| 509 |
-
VAE_destination_folder10 = "/
|
| 510 |
VAE_target10 = f"{VAE_destination_folder10}/{VAE_filename10}"
|
| 511 |
|
| 512 |
if VAE_download10:
|
|
@@ -515,7 +515,7 @@ if VAE_download10:
|
|
| 515 |
file.write(response.content)
|
| 516 |
|
| 517 |
# VAE任务11
|
| 518 |
-
VAE_destination_folder11 = "/
|
| 519 |
VAE_target11 = f"{VAE_destination_folder11}/{VAE_filename11}"
|
| 520 |
|
| 521 |
if VAE_download11:
|
|
@@ -524,7 +524,7 @@ if VAE_download11:
|
|
| 524 |
file.write(response.content)
|
| 525 |
|
| 526 |
# VAE任务12
|
| 527 |
-
VAE_destination_folder12 = "/
|
| 528 |
VAE_target12 = f"{VAE_destination_folder12}/{VAE_filename12}"
|
| 529 |
|
| 530 |
if VAE_download12:
|
|
@@ -533,7 +533,7 @@ if VAE_download12:
|
|
| 533 |
file.write(response.content)
|
| 534 |
|
| 535 |
# VAE任务13
|
| 536 |
-
VAE_destination_folder13 = "/
|
| 537 |
VAE_target13 = f"{VAE_destination_folder13}/{VAE_filename13}"
|
| 538 |
|
| 539 |
if VAE_download13:
|
|
@@ -546,7 +546,7 @@ if VAE_download13:
|
|
| 546 |
|
| 547 |
print ("开始下载embeddings模型")
|
| 548 |
# 下载任务1
|
| 549 |
-
embeddings_destination_folder1 = "/
|
| 550 |
embeddings_target1 = f'{embeddings_destination_folder1}/{embeddings_filename1}'
|
| 551 |
|
| 552 |
if embeddings_download1:
|
|
@@ -556,7 +556,7 @@ if embeddings_download1:
|
|
| 556 |
file.write(response.content)
|
| 557 |
|
| 558 |
# 下载任务2
|
| 559 |
-
embeddings_destination_folder2 = "/
|
| 560 |
embeddings_target2 = f'{embeddings_destination_folder2}/{embeddings_filename2}'
|
| 561 |
|
| 562 |
if embeddings_download2:
|
|
@@ -566,7 +566,7 @@ if embeddings_download2:
|
|
| 566 |
file.write(response.content)
|
| 567 |
|
| 568 |
# 下载任务3
|
| 569 |
-
embeddings_destination_folder3 = "/
|
| 570 |
embeddings_target3 = f'{embeddings_destination_folder3}/{embeddings_filename3}'
|
| 571 |
|
| 572 |
if embeddings_download3:
|
|
@@ -576,7 +576,7 @@ if embeddings_download3:
|
|
| 576 |
file.write(response.content)
|
| 577 |
|
| 578 |
# 下载任务4
|
| 579 |
-
embeddings_destination_folder4 = "/
|
| 580 |
embeddings_target4 = f'{embeddings_destination_folder4}/{embeddings_filename4}'
|
| 581 |
|
| 582 |
if embeddings_download4:
|
|
@@ -586,7 +586,7 @@ if embeddings_download4:
|
|
| 586 |
file.write(response.content)
|
| 587 |
|
| 588 |
# 下载任务5
|
| 589 |
-
embeddings_destination_folder5 = "/
|
| 590 |
embeddings_target5 = f'{embeddings_destination_folder5}/{embeddings_filename5}'
|
| 591 |
|
| 592 |
if embeddings_download5:
|
|
|
|
| 122 |
def run_git_clone(repo_url, destination):
|
| 123 |
subprocess.run(["git", "clone", repo_url, destination])
|
| 124 |
|
| 125 |
+
extensions_path = "/etc/main/extensions"
|
| 126 |
|
| 127 |
extensions_to_clone = [
|
| 128 |
(f"https://github.com/deforum-art/deforum-for-automatic1111-{w}", f"{extensions_path}/deforum-for-automatic1111-{w}"),
|
| 129 |
(f"https://github.com/deforum-art/sd-{w}-deforum", f"{extensions_path}/sd-{w}-deforum"),
|
| 130 |
+
(f"https://github.com/butaixianran/Stable-Diffusion-Webui-Civitai-Helper", f"{extensions_path}/Stable-Diffusion-Webui-Civitai-Helper"),
|
| 131 |
+
(f"https://github.com/Mikubill/{c}-{w}-controlnet", f"{extensions_path}/{c}-{w}-controlnet"),
|
| 132 |
+
(f"https://github.com/fkunn1326/openpose-editor", f"{extensions_path}/openpose-editor"),
|
| 133 |
+
(f"https://github.com/{ca}/{a}-{d}-{w}-huggingface", f"{extensions_path}/{a}-{d}-{w}-huggingface"),
|
| 134 |
+
(f"https://github.com/kohya-ss/{c}-{w}-additional-networks", f"{extensions_path}/{c}-{w}-additional-networks"),
|
| 135 |
+
(f"https://github.com/hnmr293/posex", f"{extensions_path}/posex"),
|
| 136 |
+
(f"https://github.com/nonnonstop/{c}-{w}-3d-open-pose-editor", f"{extensions_path}/{c}-{w}-3d-open-pose-editor"),
|
| 137 |
+
(f"https://github.com/{ca}/{c}-{w}-tunnels", f"{extensions_path}/{c}-{w}-tunnels"),
|
| 138 |
+
(f"https://github.com/etherealxx/batchlinks-{w}", f"{extensions_path}/batchlinks-{w}"),
|
| 139 |
+
(f"https://github.com/catppuccin/{a}-{d}-{w}", f"{extensions_path}/{a}-{d}-{w}-catppuccin"),
|
| 140 |
+
(f"https://github.com/AUTOMATIC1111/{a}-{d}-{w}-rembg", f"{extensions_path}/{a}-{d}-{w}-rembg"),
|
| 141 |
+
(f"https://github.com/ashen-sensored/{a}-{d}-{w}-two-shot.git", f"{extensions_path}/{a}-{d}-{w}-two-shot"),
|
| 142 |
+
(f"https://github.com/thomasasfk/{c}-{w}-aspect-ratio-helper", f"{extensions_path}/{c}-{w}-aspect-ratio-helper"),
|
| 143 |
+
(f"https://github.com/Bing-su/adetailer", f"{extensions_path}/adetailer"),
|
| 144 |
+
(f"https://github.com/mcmonkeyprojects/sd-dynamic-thresholding", f"{extensions_path}/{c}-dynamic-thresholding"),
|
| 145 |
+
(f"https://github.com/adieyal/{c}-dynamic-prompts", f"{extensions_path}/{c}-dynamic-prompts"),
|
| 146 |
+
(f"https://github.com/AUTOMATIC1111/{a}-{d}-{w}-wildcards", f"{extensions_path}/{a}-{d}-{w}-wildcards"),
|
| 147 |
+
(f"https://github.com/continue-revolution/{c}-{w}-segment-anything", f"{extensions_path}/{c}-{w}-segment-anything"),
|
| 148 |
+
(f"https://github.com/pkuliyi2015/multi{d}-upscaler-for-automatic1111.git", f"{extensions_path}/multi{d}-upscaler-for-automatic1111"),
|
| 149 |
+
(f"https://github.com/Physton/{c}-{w}-prompt-all-in-one", f"{extensions_path}/{c}-{w}-prompt-all-in-one"),
|
| 150 |
+
(f"https://github.com/journey-ad/{c}-{w}-bilingual-localization", f"{extensions_path}/{c}-{w}-bilingual-localization"),
|
| 151 |
+
(f"https://github.com/Bobo-1125/{c}-{w}-oldsix-prompt-dynamic", f"{extensions_path}/{c}-{w}-oldsix-prompt-dynamic"),
|
| 152 |
+
(f"https://github.com/dtlnor/{st}-localization-zh_CN", f"{extensions_path}/{st}-localization-zh_CN-main"),
|
| 153 |
+
(f"https://github.com/hanamizuki-ai/{a}-{d}-{w}-localization-zh_Hans", f"/extensions/{a}-{d}-{w}-localization-zh_Hans"),
|
| 154 |
+
(f"https://github.com/zanllp/sd-{w}-infinite-image-browsing", f"{extensions_path}/sd-{w}-infinite-image-browsing"),
|
| 155 |
+
(f"https://github.com/s0md3v/roop", f"{extensions_path}/roop"),
|
| 156 |
+
(f"https://github.com/journey-ad/sd-webui-bilingual-localization", f"{extensions_path}/sd-{w}-bilingual-localization"),
|
| 157 |
+
(f"https://github.com/etherealxx/batchlinks-webui", f"{extensions_path}/extensions/batchlinks-{w}"),
|
| 158 |
|
| 159 |
]
|
| 160 |
|
|
|
|
| 179 |
|
| 180 |
# CN
|
| 181 |
if CONTROLNET:
|
| 182 |
+
os.makedirs('/etc/main/extensions/control/models', exist_ok=True)
|
| 183 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11e_sd15_ip2p_fp16.safetensors', '/etc/main/extensions/control/models/control_v11e_sd15_ip2p_fp16.safetensors')
|
| 184 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11e_sd15_shuffle_fp16.safetensors', '/etc/main/extensions/control/models/control_v11e_sd15_shuffle_fp16.safetensors')
|
| 185 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_canny_fp16.safetensors', '/etc/main/extensions/control/models/control_v11p_sd15_canny_fp16.safetensors')
|
| 186 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11f1p_sd15_depth_fp16.safetensors', '/etc/main/extensions/control/models/control_v11f1p_sd15_depth_fp16.safetensors')
|
| 187 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_inpaint_fp16.safetensors', '/etc/main/extensions/control/models/control_v11p_sd15_inpaint_fp16.safetensors')
|
| 188 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_lineart_fp16.safetensors', '/etc/main/extensions/control/models/control_v11p_sd15_lineart_fp16.safetensors')
|
| 189 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_mlsd_fp16.safetensors', '/etc/main/extensions/control/models/control_v11p_sd15_mlsd_fp16.safetensors')
|
| 190 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_normalbae_fp16.safetensors', '/etc/main/extensions/control/models/control_v11p_sd15_normalbae_fp16.safetensors')
|
| 191 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_openpose_fp16.safetensors', '/etc/main/extensions/control/models/control_v11p_sd15_openpose_fp16.safetensors')
|
| 192 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_scribble_fp16.safetensors', '/etc/main/extensions/control/models/control_v11p_sd15_scribble_fp16.safetensors')
|
| 193 |
+
#wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_seg_fp16.safetensors', '/etc/main/extensions/control/models/control_v11p_sd15_seg_fp16.safetensors')
|
| 194 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15_softedge_fp16.safetensors', '/etc/main/extensions/control/models/control_v11p_sd15_softedge_fp16.safetensors')
|
| 195 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/control_v11p_sd15s2_lineart_anime_fp16.safetensors', '/etc/main/extensions/control/models/control_v11p_sd15s2_lineart_anime_fp16.safetensors')
|
| 196 |
+
#wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11e_sd15_tile_fp16.yaml', '/etc/main/extensions/control/models/control_v11e_sd15_tile_fp16.yaml')
|
| 197 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11e_sd15_ip2p_fp16.yaml', '/etc/main/extensions/control/models/control_v11e_sd15_ip2p_fp16.yaml')
|
| 198 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11e_sd15_shuffle_fp16.yaml', '/etc/main/extensions/control/models/control_v11e_sd15_shuffle_fp16.yaml')
|
| 199 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_canny_fp16.yaml', '/etc/main/extensions/control/models/control_v11p_sd15_canny_fp16.yaml')
|
| 200 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11f1p_sd15_depth_fp16.yaml', '/etc/main/extensions/control/models/control_v11f1p_sd15_depth_fp16.yaml')
|
| 201 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_inpaint_fp16.yaml', '/etc/main/extensions/control/models/control_v11p_sd15_inpaint_fp16.yaml')
|
| 202 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_lineart_fp16.yaml', '/etc/main/extensions/control/models/control_v11p_sd15_lineart_fp16.yaml')
|
| 203 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_mlsd_fp16.yaml', '/etc/main/extensions/control/models/control_v11p_sd15_mlsd_fp16.yaml')
|
| 204 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_normalbae_fp16.yaml', '/etc/main/extensions/control/models/control_v11p_sd15_normalbae_fp16.yaml')
|
| 205 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_openpose_fp16.yaml', '/etc/main/extensions/control/models/control_v11p_sd15_openpose_fp16.yaml')
|
| 206 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_scribble_fp16.yaml', '/etc/main/extensions/control/models/control_v11p_sd15_scribble_fp16.yaml')
|
| 207 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_seg_fp16.yaml', '/etc/main/extensions/control/models/control_v11p_sd15_seg_fp16.yaml')
|
| 208 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15_softedge_fp16.yaml', '/etc/main/extensions/control/models/control_v11p_sd15_softedge_fp16.yaml')
|
| 209 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11p_sd15s2_lineart_anime_fp16.yaml', '/etc/main/extensions/control/models/control_v11p_sd15s2_lineart_anime_fp16.yaml')
|
| 210 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/raw/main/control_v11f1e_sd15_tile_fp16.yaml', '/etc/main/extensions/control/models')
|
| 211 |
|
| 212 |
# T2I
|
| 213 |
if T2I:
|
| 214 |
+
os.makedirs('/etc/main/extensions/control/models', exist_ok=True)
|
| 215 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_style_sd14v1.pth', '/etc/main/extensions/control/models/t2iadapter_style_sd14v1.pth')
|
| 216 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_sketch_sd14v1.pth', '/etc/main/extensions/control/models/t2iadapter_sketch_sd14v1.pth')
|
| 217 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_seg_sd14v1.pth', '/etc/main/extensions/control/models/t2iadapter_seg_sd14v1.pth')
|
| 218 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_openpose_sd14v1.pth', '/etc/main/extensions/control/models/t2iadapter_openpose_sd14v1.pth')
|
| 219 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_keypose_sd14v1.pth', '/etc/main/extensions/control/models/t2iadapter_keypose_sd14v1.pth')
|
| 220 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_depth_sd14v1.pth', '/etc/main/extensions/control/models/t2iadapter_depth_sd14v1.pth')
|
| 221 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_color_sd14v1.pth', '/etc/main/extensions/control/models/t2iadapter_color_sd14v1.pth')
|
| 222 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_canny_sd14v1.pth', '/etc/main/extensions/control/models/t2iadapter_canny_sd14v1.pth')
|
| 223 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_canny_sd15v2.pth', '/etc/main/extensions/control/models/t2iadapter_canny_sd15v2.pth')
|
| 224 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_depth_sd15v2.pth', '/etc/main/extensions/control/models/t2iadapter_depth_sd15v2.pth')
|
| 225 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_sketch_sd15v2.pth', '/etc/main/extensions/control/models/t2iadapter_sketch_sd15v2.pth')
|
| 226 |
+
wget.download('https://huggingface.co/ckpt/ControlNet-v1-1/resolve/main/t2iadapter_zoedepth_sd15v1.pth', '/etc/main/extensions/control/models/t2iadapter_zoedepth_sd15v1.pth')
|
| 227 |
|
| 228 |
|
| 229 |
|
|
|
|
| 233 |
print ("开始下载Checkpoints/safetensors等大模型")
|
| 234 |
# Checkpoints/safetensors等大模型下载
|
| 235 |
# 下载任务1
|
| 236 |
+
CS_destination_folder1 = f"/etc/main/models/Stable-diffusion"
|
| 237 |
CS_target1 = f"{CS_destination_folder1}/{CS_filename1}"
|
| 238 |
|
| 239 |
if CS_download1:
|
|
|
|
| 243 |
f.write(response.content)
|
| 244 |
|
| 245 |
# 下载任务2
|
| 246 |
+
CS_destination_folder2 = f"/etc/main/models/Stable-diffusion"
|
| 247 |
CS_target2 = f"{CS_destination_folder2}/{CS_filename2}"
|
| 248 |
|
| 249 |
if CS_download2:
|
|
|
|
| 253 |
f.write(response.content)
|
| 254 |
|
| 255 |
# 下载任务3
|
| 256 |
+
CS_destination_folder3 = f"/etc/main/models/Stable-diffusion"
|
| 257 |
CS_target3 = f"{CS_destination_folder3}/{CS_filename3}"
|
| 258 |
|
| 259 |
if CS_download3:
|
|
|
|
| 263 |
f.write(response.content)
|
| 264 |
|
| 265 |
# 下载任务4
|
| 266 |
+
CS_destination_folder4 = f"/etc/main/models/Stable-diffusion"
|
| 267 |
CS_target4 = f"{CS_destination_folder4}/{CS_filename4}"
|
| 268 |
|
| 269 |
if CS_download4:
|
|
|
|
| 273 |
f.write(response.content)
|
| 274 |
|
| 275 |
# 下载任务5
|
| 276 |
+
CS_destination_folder5 = f"/etc/main/models/Stable-diffusion"
|
| 277 |
CS_target5 = f"{CS_destination_folder5}/{CS_filename5}"
|
| 278 |
|
| 279 |
if CS_download5:
|
|
|
|
| 283 |
f.write(response.content)
|
| 284 |
|
| 285 |
# 下载任务6
|
| 286 |
+
CS_destination_folder6 = f"/etc/main/models/Stable-diffusion"
|
| 287 |
CS_target6 = f"{CS_destination_folder6}/{CS_filename6}"
|
| 288 |
|
| 289 |
if CS_download6:
|
|
|
|
| 293 |
f.write(response.content)
|
| 294 |
|
| 295 |
# 下载任务7
|
| 296 |
+
CS_destination_folder7 = f"/etc/main/models/Stable-diffusion"
|
| 297 |
CS_target7 = f"{CS_destination_folder7}/{CS_filename7}"
|
| 298 |
|
| 299 |
if CS_download7:
|
|
|
|
| 303 |
f.write(response.content)
|
| 304 |
|
| 305 |
# 下载任务8
|
| 306 |
+
CS_destination_folder8 = f"/etc/main/models/Stable-diffusion"
|
| 307 |
CS_target8 = f"{CS_destination_folder8}/{CS_filename8}"
|
| 308 |
|
| 309 |
if CS_download8:
|
|
|
|
| 313 |
f.write(response.content)
|
| 314 |
|
| 315 |
# 下载任务9
|
| 316 |
+
CS_destination_folder9 = f"/etc/main/models/Stable-diffusion"
|
| 317 |
CS_target9 = f"{CS_destination_folder9}/{CS_filename9}"
|
| 318 |
|
| 319 |
if CS_download9:
|
|
|
|
| 323 |
f.write(response.content)
|
| 324 |
|
| 325 |
# 下载任务10
|
| 326 |
+
CS_destination_folder10 = f"/etc/main/models/Stable-diffusion"
|
| 327 |
CS_target10 = f"{CS_destination_folder10}/{CS_filename10}"
|
| 328 |
|
| 329 |
if CS_download10:
|
|
|
|
| 333 |
f.write(response.content)
|
| 334 |
|
| 335 |
# 下载任务11
|
| 336 |
+
CS_destination_folder11 = f"/etc/main/models/Stable-diffusion"
|
| 337 |
CS_target11 = f"{CS_destination_folder11}/{CS_filename11}"
|
| 338 |
|
| 339 |
if CS_download11:
|
|
|
|
| 343 |
f.write(response.content)
|
| 344 |
|
| 345 |
# 下载任务12
|
| 346 |
+
CS_destination_folder12 = f"/etc/main/models/Stable-diffusion"
|
| 347 |
CS_target12 = f"{CS_destination_folder12}/{CS_filename12}"
|
| 348 |
|
| 349 |
if CS_download12:
|
|
|
|
| 353 |
f.write(response.content)
|
| 354 |
|
| 355 |
# 下载任务13
|
| 356 |
+
CS_destination_folder13 = f"/etc/main/models/Stable-diffusion"
|
| 357 |
CS_target13 = f"{CS_destination_folder13}/{CS_filename13}"
|
| 358 |
|
| 359 |
if CS_download13:
|
|
|
|
| 367 |
|
| 368 |
print("开始下载Lora模型")
|
| 369 |
# Lora任务1
|
| 370 |
+
Lora_destination_folder1 = "/etc/main/models/Lora"
|
| 371 |
Lora_target1 = os.path.join(Lora_destination_folder1, Lora_filename1)
|
| 372 |
|
| 373 |
if Lora_download1:
|
|
|
|
| 376 |
f.write(response.content)
|
| 377 |
|
| 378 |
# Lora任务2
|
| 379 |
+
Lora_destination_folder2 = "/etc/main/models/Lora"
|
| 380 |
Lora_target2 = os.path.join(Lora_destination_folder2, Lora_filename2)
|
| 381 |
|
| 382 |
if Lora_download2:
|
|
|
|
| 385 |
f.write(response.content)
|
| 386 |
|
| 387 |
# Lora任务3
|
| 388 |
+
Lora_destination_folder3 = "/etc/main/models/Lora"
|
| 389 |
Lora_target3 = os.path.join(Lora_destination_folder3, Lora_filename3)
|
| 390 |
|
| 391 |
if Lora_download3:
|
|
|
|
| 425 |
|
| 426 |
print ("开始下载VAE模型")
|
| 427 |
# VAE任务1
|
| 428 |
+
VAE_destination_folder1 = "/etc/main/models/VAE"
|
| 429 |
VAE_target1 = f"{VAE_destination_folder1}/{VAE_filename1}"
|
| 430 |
|
| 431 |
if VAE_download1:
|
|
|
|
| 434 |
file.write(response.content)
|
| 435 |
|
| 436 |
# VAE任务2
|
| 437 |
+
VAE_destination_folder2 = "/etc/main/models/VAE"
|
| 438 |
VAE_target2 = f"{VAE_destination_folder2}/{VAE_filename2}"
|
| 439 |
|
| 440 |
if VAE_download2:
|
|
|
|
| 443 |
file.write(response.content)
|
| 444 |
|
| 445 |
# VAE任务3
|
| 446 |
+
VAE_destination_folder3 = "/etc/main/models/VAE"
|
| 447 |
VAE_target3 = f"{VAE_destination_folder3}/{VAE_filename3}"
|
| 448 |
|
| 449 |
if VAE_download3:
|
|
|
|
| 452 |
file.write(response.content)
|
| 453 |
|
| 454 |
# VAE任务4
|
| 455 |
+
VAE_destination_folder4 = "/etc/main/models/VAE"
|
| 456 |
VAE_target4 = f"{VAE_destination_folder4}/{VAE_filename4}"
|
| 457 |
|
| 458 |
if VAE_download4:
|
|
|
|
| 461 |
file.write(response.content)
|
| 462 |
|
| 463 |
# VAE任务5
|
| 464 |
+
VAE_destination_folder5 = "/etc/main/models/VAE"
|
| 465 |
VAE_target5 = f"{VAE_destination_folder5}/{VAE_filename5}"
|
| 466 |
|
| 467 |
if VAE_download5:
|
|
|
|
| 470 |
file.write(response.content)
|
| 471 |
|
| 472 |
# VAE任务6
|
| 473 |
+
VAE_destination_folder6 = "/etc/main/models/VAE"
|
| 474 |
VAE_target6 = f"{VAE_destination_folder6}/{VAE_filename6}"
|
| 475 |
|
| 476 |
if VAE_download6:
|
|
|
|
| 479 |
file.write(response.content)
|
| 480 |
|
| 481 |
# VAE任务7
|
| 482 |
+
VAE_destination_folder7 = "/etc/main/models/VAE"
|
| 483 |
VAE_target7 = f"{VAE_destination_folder7}/{VAE_filename7}"
|
| 484 |
|
| 485 |
if VAE_download7:
|
|
|
|
| 488 |
file.write(response.content)
|
| 489 |
|
| 490 |
# VAE任务8
|
| 491 |
+
VAE_destination_folder8 = "/etc/main/models/VAE"
|
| 492 |
VAE_target8 = f"{VAE_destination_folder8}/{VAE_filename8}"
|
| 493 |
|
| 494 |
if VAE_download8:
|
|
|
|
| 497 |
file.write(response.content)
|
| 498 |
|
| 499 |
# VAE任务9
|
| 500 |
+
VAE_destination_folder9 = "/etc/main/models/VAE"
|
| 501 |
VAE_target9 = f"{VAE_destination_folder9}/{VAE_filename9}"
|
| 502 |
|
| 503 |
if VAE_download9:
|
|
|
|
| 506 |
file.write(response.content)
|
| 507 |
|
| 508 |
# VAE任务10
|
| 509 |
+
VAE_destination_folder10 = "/etc/main/models/VAE"
|
| 510 |
VAE_target10 = f"{VAE_destination_folder10}/{VAE_filename10}"
|
| 511 |
|
| 512 |
if VAE_download10:
|
|
|
|
| 515 |
file.write(response.content)
|
| 516 |
|
| 517 |
# VAE任务11
|
| 518 |
+
VAE_destination_folder11 = "/etc/main/models/VAE"
|
| 519 |
VAE_target11 = f"{VAE_destination_folder11}/{VAE_filename11}"
|
| 520 |
|
| 521 |
if VAE_download11:
|
|
|
|
| 524 |
file.write(response.content)
|
| 525 |
|
| 526 |
# VAE任务12
|
| 527 |
+
VAE_destination_folder12 = "/etc/main/models/VAE"
|
| 528 |
VAE_target12 = f"{VAE_destination_folder12}/{VAE_filename12}"
|
| 529 |
|
| 530 |
if VAE_download12:
|
|
|
|
| 533 |
file.write(response.content)
|
| 534 |
|
| 535 |
# VAE任务13
|
| 536 |
+
VAE_destination_folder13 = "/etc/main/models/VAE"
|
| 537 |
VAE_target13 = f"{VAE_destination_folder13}/{VAE_filename13}"
|
| 538 |
|
| 539 |
if VAE_download13:
|
|
|
|
| 546 |
|
| 547 |
print ("开始下载embeddings模型")
|
| 548 |
# 下载任务1
|
| 549 |
+
embeddings_destination_folder1 = "/etc/main/embeddings"
|
| 550 |
embeddings_target1 = f'{embeddings_destination_folder1}/{embeddings_filename1}'
|
| 551 |
|
| 552 |
if embeddings_download1:
|
|
|
|
| 556 |
file.write(response.content)
|
| 557 |
|
| 558 |
# 下载任务2
|
| 559 |
+
embeddings_destination_folder2 = "/etc/main/embeddings"
|
| 560 |
embeddings_target2 = f'{embeddings_destination_folder2}/{embeddings_filename2}'
|
| 561 |
|
| 562 |
if embeddings_download2:
|
|
|
|
| 566 |
file.write(response.content)
|
| 567 |
|
| 568 |
# 下载任务3
|
| 569 |
+
embeddings_destination_folder3 = "/etc/main/embeddings"
|
| 570 |
embeddings_target3 = f'{embeddings_destination_folder3}/{embeddings_filename3}'
|
| 571 |
|
| 572 |
if embeddings_download3:
|
|
|
|
| 576 |
file.write(response.content)
|
| 577 |
|
| 578 |
# 下载任务4
|
| 579 |
+
embeddings_destination_folder4 = "/etc/main/embeddings"
|
| 580 |
embeddings_target4 = f'{embeddings_destination_folder4}/{embeddings_filename4}'
|
| 581 |
|
| 582 |
if embeddings_download4:
|
|
|
|
| 586 |
file.write(response.content)
|
| 587 |
|
| 588 |
# 下载任务5
|
| 589 |
+
embeddings_destination_folder5 = "/etc/main/embeddings"
|
| 590 |
embeddings_target5 = f'{embeddings_destination_folder5}/{embeddings_filename5}'
|
| 591 |
|
| 592 |
if embeddings_download5:
|