adbrasi commited on
Commit
8d3227a
·
verified ·
1 Parent(s): 5a91244

Update wanFullForTest.sh

Browse files
Files changed (1) hide show
  1. wanFullForTest.sh +21 -6
wanFullForTest.sh CHANGED
@@ -85,6 +85,12 @@ readonly MEGA_LORAS=(
85
  "https://mega.nz/file/wcAFhRJZ#ifZcckts0wPq1FG693tYLkpFrvjXvab1ZQeL6DuL1T8"
86
  )
87
 
 
 
 
 
 
 
88
  # Custom nodes para instalar
89
  readonly CUSTOM_NODES=(
90
  "https://github.com/kijai/ComfyUI-Florence2"
@@ -306,6 +312,8 @@ process_downloads() {
306
  clip_vision) target_dir="$MODELS_DIR/clip_vision" ;;
307
  controlnet) target_dir="$MODELS_DIR/controlnet" ;;
308
  upscale_models) target_dir="$MODELS_DIR/upscale_models" ;;
 
 
309
  *) target_dir="$MODELS_DIR/$type" ;;
310
  esac
311
 
@@ -503,18 +511,25 @@ mkdir -p "$LORA_DIR"
503
 
504
  if command_exists megadl; then
505
  for mega_url in "${MEGA_LORAS[@]}"; do
506
- log_info "Processando: $mega_url"
507
  download_mega "$mega_url" "$LORA_DIR" || log_warn "Falha ao baixar: $mega_url"
508
  done
509
- log_success "Downloads Mega.nz concluídos"
 
 
 
 
 
 
 
 
 
 
 
510
  else
511
  log_warn "megatools não disponível, pulando downloads do Mega.nz"
512
  fi
513
 
514
- # TODO: Adicionar download da pasta Mega para upscale_models
515
- # https://mega.nz/folder/rdpkjZzC#eUXPed_vntJKLrB0wpeJ-w
516
- # Nota: megadl não suporta pastas diretamente, requer links individuais
517
-
518
  # [9] Instalar custom nodes
519
  log_info "[9/10] Instalando custom nodes..."
520
  CN_DIR="$COMFY_DIR/custom_nodes"
 
85
  "https://mega.nz/file/wcAFhRJZ#ifZcckts0wPq1FG693tYLkpFrvjXvab1ZQeL6DuL1T8"
86
  )
87
 
88
+ # Mega.nz Upscale models
89
+ readonly MEGA_UPSCALE=(
90
+ "https://mega.nz/file/qdQwAJSC#rPY2Hg4x-_RbHiHUBFW-YU8xZUqPpq5Gpl1uPFiJvW4"
91
+ "https://mega.nz/file/KIh2marA#CehVNXxQhGfp1bqUL0K1YPWNqrCUoLPCZGq2W6XqmWo"
92
+ )
93
+
94
  # Custom nodes para instalar
95
  readonly CUSTOM_NODES=(
96
  "https://github.com/kijai/ComfyUI-Florence2"
 
312
  clip_vision) target_dir="$MODELS_DIR/clip_vision" ;;
313
  controlnet) target_dir="$MODELS_DIR/controlnet" ;;
314
  upscale_models) target_dir="$MODELS_DIR/upscale_models" ;;
315
+ tensorrt) target_dir="$MODELS_DIR/tensorrt" ;;
316
+ tensorrt_rife) target_dir="$MODELS_DIR/tensorrt/rife" ;;
317
  *) target_dir="$MODELS_DIR/$type" ;;
318
  esac
319
 
 
511
 
512
  if command_exists megadl; then
513
  for mega_url in "${MEGA_LORAS[@]}"; do
514
+ log_info "Processando LoRA: $mega_url"
515
  download_mega "$mega_url" "$LORA_DIR" || log_warn "Falha ao baixar: $mega_url"
516
  done
517
+ log_success "LoRAs do Mega.nz concluídos"
518
+
519
+ # Baixar Upscale models do Mega.nz
520
+ log_info "Baixando Upscale models do Mega.nz..."
521
+ UPSCALE_DIR="$MODELS_DIR/upscale_models"
522
+ mkdir -p "$UPSCALE_DIR"
523
+
524
+ for mega_url in "${MEGA_UPSCALE[@]}"; do
525
+ log_info "Processando Upscale: $mega_url"
526
+ download_mega "$mega_url" "$UPSCALE_DIR" || log_warn "Falha ao baixar: $mega_url"
527
+ done
528
+ log_success "Upscale models do Mega.nz concluídos"
529
  else
530
  log_warn "megatools não disponível, pulando downloads do Mega.nz"
531
  fi
532
 
 
 
 
 
533
  # [9] Instalar custom nodes
534
  log_info "[9/10] Instalando custom nodes..."
535
  CN_DIR="$COMFY_DIR/custom_nodes"