adbrasi commited on
Commit
bed787a
·
verified ·
1 Parent(s): 98af540

Update WANcomfyui_installer_fixed.sh

Browse files
Files changed (1) hide show
  1. WANcomfyui_installer_fixed.sh +28 -5
WANcomfyui_installer_fixed.sh CHANGED
@@ -2,7 +2,7 @@
2
 
3
  # ============================================================================
4
  # Instalador Otimizado para ComfyUI com Wan 2.2
5
- # Versão 3.0 - Corrigida com instalação manual de custom nodes
6
  # ============================================================================
7
 
8
  set -e
@@ -183,6 +183,20 @@ install_hf_tools() {
183
  install_sageattention() {
184
  log_info "Instalando SageAttention 2.2.0 com 2++ (compilação otimizada)..."
185
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
  local sage_dir="$INSTALL_BASE_DIR/SageAttention"
187
 
188
  # Remove instalação anterior se existir
@@ -510,6 +524,14 @@ verify_installation() {
510
  fi
511
  done
512
 
 
 
 
 
 
 
 
 
513
  # Verifica SageAttention
514
  if ! python3 -c "import sageattention" 2>/dev/null; then
515
  log_warning "SageAttention não está instalado (opcional)"
@@ -575,7 +597,8 @@ main() {
575
  echo "=== Instalação ComfyUI iniciada em $(date) ===" > "$LOG_FILE"
576
 
577
  log_info "================================================="
578
- log_info "Instalador ComfyUI com Wan 2.2 - v3.0"
 
579
  log_info "================================================="
580
 
581
  # Etapa 1: Verificar requisitos
@@ -602,7 +625,7 @@ main() {
602
  # Etapa 8: PROCESSOS PARALELOS - SageAttention e Downloads
603
  log_info "================================================="
604
  log_info "Iniciando processos paralelos:"
605
- log_info " 1. Instalação do SageAttention (5-10 min)"
606
  log_info " 2. Download dos modelos Wan 2.2"
607
  log_info "================================================="
608
 
@@ -630,9 +653,9 @@ main() {
630
  local sage_exit=$?
631
  sage_done=true
632
  if [ $sage_exit -eq 0 ]; then
633
- log_info "✓ SageAttention instalado com sucesso!"
634
  else
635
- log_warning "⚠ SageAttention pode não ter sido instalado corretamente"
636
  fi
637
  fi
638
  fi
 
2
 
3
  # ============================================================================
4
  # Instalador Otimizado para ComfyUI com Wan 2.2
5
+ # Versão 3.1 - Com instalação do PyTorch CUDA 12.8
6
  # ============================================================================
7
 
8
  set -e
 
183
  install_sageattention() {
184
  log_info "Instalando SageAttention 2.2.0 com 2++ (compilação otimizada)..."
185
 
186
+ # =========================================================================
187
+ # INSTALAÇÃO DO PYTORCH COM CUDA 12.8
188
+ # =========================================================================
189
+ log_info "Instalando PyTorch 2.7.0 com CUDA 12.8..."
190
+
191
+ python3 -m pip install torch==2.7.0 torchvision==0.22.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/cu128 || {
192
+ log_error "Falha ao instalar PyTorch com CUDA 12.8"
193
+ return 1
194
+ }
195
+
196
+ # Verifica instalação do PyTorch
197
+ log_info "Verificando instalação do PyTorch..."
198
+ python3 -c "import torch; print(f'PyTorch version: {torch.__version__}'); print(f'CUDA available: {torch.cuda.is_available()}'); print(f'CUDA version: {torch.version.cuda if torch.cuda.is_available() else \"N/A\"}')" 2>&1 | tee -a "$LOG_FILE"
199
+
200
  local sage_dir="$INSTALL_BASE_DIR/SageAttention"
201
 
202
  # Remove instalação anterior se existir
 
524
  fi
525
  done
526
 
527
+ # Verifica PyTorch com CUDA
528
+ log_info "Verificando PyTorch e CUDA:"
529
+ if python3 -c "import torch; assert torch.cuda.is_available()" 2>/dev/null; then
530
+ log_info "✓ PyTorch com CUDA instalado corretamente"
531
+ else
532
+ log_warning "PyTorch instalado mas CUDA não está disponível"
533
+ fi
534
+
535
  # Verifica SageAttention
536
  if ! python3 -c "import sageattention" 2>/dev/null; then
537
  log_warning "SageAttention não está instalado (opcional)"
 
597
  echo "=== Instalação ComfyUI iniciada em $(date) ===" > "$LOG_FILE"
598
 
599
  log_info "================================================="
600
+ log_info "Instalador ComfyUI com Wan 2.2 - v3.1"
601
+ log_info "Com PyTorch 2.7.0 + CUDA 12.8"
602
  log_info "================================================="
603
 
604
  # Etapa 1: Verificar requisitos
 
625
  # Etapa 8: PROCESSOS PARALELOS - SageAttention e Downloads
626
  log_info "================================================="
627
  log_info "Iniciando processos paralelos:"
628
+ log_info " 1. Instalação do PyTorch + SageAttention (10-15 min)"
629
  log_info " 2. Download dos modelos Wan 2.2"
630
  log_info "================================================="
631
 
 
653
  local sage_exit=$?
654
  sage_done=true
655
  if [ $sage_exit -eq 0 ]; then
656
+ log_info "✓ PyTorch + SageAttention instalado com sucesso!"
657
  else
658
+ log_warning "⚠ PyTorch/SageAttention pode não ter sido instalado corretamente"
659
  fi
660
  fi
661
  fi