Update wanForProduction.sh
Browse files- wanForProduction.sh +19 -24
wanForProduction.sh
CHANGED
|
@@ -37,28 +37,8 @@ export PYTORCH_CUDA_ALLOC_CONF="expandable_segments:True"
|
|
| 37 |
|
| 38 |
# Lista de downloads (formato: URL|TIPO|NOME_OPCIONAL)
|
| 39 |
DOWNLOAD_FILES=(
|
| 40 |
-
"https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/resolve/main/I2V/Wan2_2-I2V-A14B-LOW_fp8_e4m3fn_scaled_KJ.safetensors|diffusion_models|"
|
| 41 |
-
"https://huggingface.co/Kijai/WanVideo_comfy_fp8_scaled/resolve/main/I2V/Wan2_2-I2V-A14B-HIGH_fp8_e4m3fn_scaled_KJ.safetensors|diffusion_models|"
|
| 42 |
-
"https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/LoRAs/Wan22-Lightning/Wan22_A14B_T2V_HIGH_Lightning_4steps_lora_250928_rank128_fp16.safetensors|loras|"
|
| 43 |
-
"https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/LoRAs/Wan22-Lightning/Wan22_A14B_T2V_LOW_Lightning_4steps_lora_250928_rank64_fp16.safetensors|loras|"
|
| 44 |
-
"https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/LoRAs/AniSora/Wan2_2_I2V_AniSora_3_2_HIGH_rank_64_fp16.safetensors|loras|"
|
| 45 |
-
"https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/Wan2_1_VAE_bf16.safetensors|vae|"
|
| 46 |
-
"https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/open-clip-xlm-roberta-large-vit-huge-14_visual_fp16.safetensors|clip_vision|"
|
| 47 |
-
"https://huggingface.co/Kijai/WanVideo_comfy/resolve/main/umt5-xxl-enc-bf16.safetensors|text_encoders|"
|
| 48 |
"https://huggingface.co/ABDALLALSWAITI/Upscalers/resolve/main/general/Swin2SR_ClassicalSR_X2_64.pth|upscale_models|"
|
| 49 |
-
|
| 50 |
-
"mega://https://mega.nz/file/lIhQETjT#nKlQ01Euw6fUxo8P5bfwlQrxAkWEedXQQOqHv5u4yrM|loras|"
|
| 51 |
-
"mega://https://mega.nz/file/UIAESACY#Qlei1Pj5Nwno3Sz-wsTekvD-YgCkN1A5QbFKoRHXG9E|loras|"
|
| 52 |
-
"mega://https://mega.nz/file/cdAg1Q7D#tQVrer2sB-M7XdYiKAqr7kRRfJw4pXCdliOg2aPJUGE|loras|"
|
| 53 |
-
"mega://https://mega.nz/file/5RQFiAAJ#QCWrHkuJjXlFufR18g5R9YXJGqJ1pQp7xbqNRgSYUjc|loras|"
|
| 54 |
-
"mega://https://mega.nz/file/tABgxLTS#NNlPV8NPc7R52MIjABMFUb41EOFDxFoszBxOrPMN13Q|loras|"
|
| 55 |
-
"mega://https://mega.nz/file/4MxBgJ5Y#R8OSby0u-t-QFBnpnOtdjN3xuiVRvHa4_OEzTwWoGKQ|loras|"
|
| 56 |
-
"mega://https://mega.nz/file/dJJxiSRR#o3XsYfSvb04xg7gNVdfHb3XTVHgvx0ZyXe9N8VQ9Lfw|loras|"
|
| 57 |
-
"mega://https://mega.nz/file/wcAFhRJZ#ifZcckts0wPq1FG693tYLkpFrvjXvab1ZQeL6DuL1T8|loras|"
|
| 58 |
-
"mega://https://mega.nz/file/wNIgmRwb#vn6rKM3QuTDpWVTLEBDsKjIkNkaX2wLKeauKNeVkcFs|loras|"
|
| 59 |
-
"mega://https://mega.nz/file/hZhhhCQS#4je0Im2g1kEvTCuPotjVWkA-g6XICkqMb-mKxMt6R3Y|loras|"
|
| 60 |
-
"mega://https://mega.nz/file/qdQwAJSC#rPY2Hg4x-_RbHiHUBFW-YU8xZUqPpq5Gpl1uPFiJvW4|upscale_models|"
|
| 61 |
-
"mega://https://mega.nz/file/KIh2marA#CehVNXxQhGfp1bqUL0K1YPWNqrCUoLPCZGq2W6XqmWo|upscale_models|"
|
| 62 |
)
|
| 63 |
|
| 64 |
# Custom nodes (do CODE2)
|
|
@@ -407,14 +387,29 @@ clone_repo() {
|
|
| 407 |
local url="$1"
|
| 408 |
local dest="$2"
|
| 409 |
|
|
|
|
|
|
|
|
|
|
| 410 |
if [[ -d "$dest/.git" ]]; then
|
| 411 |
-
git -C "$dest" pull --ff-only
|
|
|
|
|
|
|
|
|
|
|
|
|
| 412 |
else
|
| 413 |
-
git clone --depth 1 "$url" "$dest"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 414 |
fi
|
| 415 |
|
| 416 |
if [[ -f "$dest/requirements.txt" ]]; then
|
| 417 |
-
pip install -q -r "$dest/requirements.txt"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 418 |
fi
|
| 419 |
}
|
| 420 |
|
|
|
|
| 37 |
|
| 38 |
# Lista de downloads (formato: URL|TIPO|NOME_OPCIONAL)
|
| 39 |
DOWNLOAD_FILES=(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
"https://huggingface.co/ABDALLALSWAITI/Upscalers/resolve/main/general/Swin2SR_ClassicalSR_X2_64.pth|upscale_models|"
|
| 41 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
)
|
| 43 |
|
| 44 |
# Custom nodes (do CODE2)
|
|
|
|
| 387 |
local url="$1"
|
| 388 |
local dest="$2"
|
| 389 |
|
| 390 |
+
local name
|
| 391 |
+
name="$(basename "$dest")"
|
| 392 |
+
|
| 393 |
if [[ -d "$dest/.git" ]]; then
|
| 394 |
+
if ! git -C "$dest" pull --ff-only --no-rebase >/dev/null 2>&1; then
|
| 395 |
+
log_warn "Falha ao atualizar $name"
|
| 396 |
+
else
|
| 397 |
+
log_success "Atualizado: $name"
|
| 398 |
+
fi
|
| 399 |
else
|
| 400 |
+
if ! git clone --depth 1 "$url" "$dest" >/dev/null 2>&1; then
|
| 401 |
+
log_warn "Falha ao clonar $name"
|
| 402 |
+
return
|
| 403 |
+
fi
|
| 404 |
+
log_success "Clonado: $name"
|
| 405 |
fi
|
| 406 |
|
| 407 |
if [[ -f "$dest/requirements.txt" ]]; then
|
| 408 |
+
if ! pip install -q -r "$dest/requirements.txt" >/dev/null 2>&1; then
|
| 409 |
+
log_warn "Falha ao instalar requirements de $name"
|
| 410 |
+
else
|
| 411 |
+
log_info "Dependências instaladas para $name"
|
| 412 |
+
fi
|
| 413 |
fi
|
| 414 |
}
|
| 415 |
|