adbrasi commited on
Commit
f13b0f1
·
verified ·
1 Parent(s): 0b00b26

Update ImageStudioTESTER.sh

Browse files
Files changed (1) hide show
  1. ImageStudioTESTER.sh +4 -41
ImageStudioTESTER.sh CHANGED
@@ -286,43 +286,10 @@ clone_repo() {
286
  git clone --depth 1 "$url" "$dest" 2>/dev/null || true
287
  fi
288
 
289
- }
290
-
291
- collect_requirements_and_install() {
292
- local base="$COMFY_DIR/custom_nodes"
293
- local reqtmp="$TMPDIR/_all_requirements.txt"
294
- : > "$reqtmp"
295
- if [ -d "$base" ]; then
296
- python - "$base" "$reqtmp" <<'PY'
297
- import sys
298
- from pathlib import Path
299
-
300
- base = Path(sys.argv[1])
301
- reqtmp = Path(sys.argv[2])
302
- entries = []
303
-
304
- if base.exists():
305
- for req in base.rglob("requirements.txt"):
306
- try:
307
- with req.open("r", encoding="utf-8", errors="ignore") as fh:
308
- for line in fh:
309
- line = line.strip()
310
- if not line or line.startswith("#"):
311
- continue
312
- entries.append(line)
313
- except Exception:
314
- pass
315
-
316
- entries = sorted(set(entries))
317
- if entries:
318
- reqtmp.write_text("\n".join(entries) + "\n", encoding="utf-8")
319
- PY
320
- if [ -s "$reqtmp" ]; then
321
- log_info "Instalando requirements combinados dos custom nodes"
322
- python -m pip install ${PIP_FLAGS} -r "$reqtmp"
323
- fi
324
  fi
325
- rm -f "$reqtmp"
326
  }
327
 
328
  # ========== INSTALAÇÃO ==========
@@ -400,10 +367,6 @@ for repo in "${CUSTOM_NODES[@]}"; do
400
  clone_repo "$repo" "$CN_DIR/$node_name"
401
  done
402
 
403
- collect_requirements_and_install
404
- python -m pip cache purge || true
405
- conda clean -a -y 2>/dev/null || true
406
-
407
  log_success "Custom nodes instalados"
408
 
409
  # Verificar e iniciar
@@ -417,4 +380,4 @@ rm -rf "$TMPDIR"
417
  mkdir -p "$TMPDIR"
418
 
419
  cd "$COMFY_DIR"
420
- exec comfy --workspace "$COMFY_DIR" launch -- --listen "$COMFY_HOST" --preview-method latent2rgb --front-end-version Comfy-Org/ComfyUI_frontend@v1.28.8 --port "$COMFY_PORT"
 
286
  git clone --depth 1 "$url" "$dest" 2>/dev/null || true
287
  fi
288
 
289
+ # Instalar requirements se existir (comportamento original)
290
+ if [ -f "$dest/requirements.txt" ]; then
291
+ python -m pip install -q -r "$dest/requirements.txt" 2>/dev/null || true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
292
  fi
 
293
  }
294
 
295
  # ========== INSTALAÇÃO ==========
 
367
  clone_repo "$repo" "$CN_DIR/$node_name"
368
  done
369
 
 
 
 
 
370
  log_success "Custom nodes instalados"
371
 
372
  # Verificar e iniciar
 
380
  mkdir -p "$TMPDIR"
381
 
382
  cd "$COMFY_DIR"
383
+ exec comfy --workspace "$COMFY_DIR" launch -- --listen "$COMFY_HOST" --preview-method latent2rgb --front-end-version Comfy-Org/ComfyUI_frontend@v1.28.8 --port "$COMFY_PORT"