adbrasi commited on
Commit
5666b74
·
verified ·
1 Parent(s): c58fb9d

Update ImageStudioAlternativo.sh

Browse files
Files changed (1) hide show
  1. ImageStudioAlternativo.sh +14 -0
ImageStudioAlternativo.sh CHANGED
@@ -287,6 +287,20 @@ fi
287
 
288
  log_success "ComfyUI instalado"
289
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
290
  # 5. Baixar modelos
291
  log_info "[5/6] Baixando modelos..."
292
 
 
287
 
288
  log_success "ComfyUI instalado"
289
 
290
+ # 4. Corrigir PyTorch para RTX 5090 se detectado
291
+ log_info "[4/6] Verificando GPU..."
292
+
293
+ GPU_INFO=$(nvidia-smi --query-gpu=name --format=csv,noheader 2>/dev/null || echo "")
294
+
295
+ if [[ "$GPU_INFO" == *"5090"* ]] || [[ "$GPU_INFO" == *"5080"* ]]; then
296
+ log_warn "RTX 5090/5080 detectada - instalando PyTorch novo"
297
+ python -m pip install --force-reinstall torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
298
+ else
299
+ log_info "GPU: ${GPU_INFO:-Não detectada}"
300
+ fi
301
+
302
+ log_success "PyTorch configurado"
303
+
304
  # 5. Baixar modelos
305
  log_info "[5/6] Baixando modelos..."
306