comrender commited on
Commit
cb40cb1
·
verified ·
1 Parent(s): d6c2e7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -67,12 +67,14 @@ def import_custom_nodes() -> None:
67
  if not os.path.exists("ComfyUI"):
68
  subprocess.run(["git", "clone", "https://github.com/comfyanonymous/ComfyUI.git"])
69
 
70
- subprocess.run(["sh", "-c", "cd ComfyUI && git checkout `git rev-list -1 --before='2025-03-01' master`"])
71
 
72
  custom_node_path = "ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale"
73
  if not os.path.exists(custom_node_path):
74
  subprocess.run(["git", "clone", "https://github.com/ssitu/ComfyUI_UltimateSDUpscale.git", custom_node_path])
75
 
 
 
76
  # Create model directories
77
  os.makedirs("ComfyUI/models/diffusion_models", exist_ok=True)
78
  os.makedirs("ComfyUI/models/clip", exist_ok=True)
 
67
  if not os.path.exists("ComfyUI"):
68
  subprocess.run(["git", "clone", "https://github.com/comfyanonymous/ComfyUI.git"])
69
 
70
+ subprocess.run(["pip", "install", "-r", "ComfyUI/requirements.txt"])
71
 
72
  custom_node_path = "ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale"
73
  if not os.path.exists(custom_node_path):
74
  subprocess.run(["git", "clone", "https://github.com/ssitu/ComfyUI_UltimateSDUpscale.git", custom_node_path])
75
 
76
+ subprocess.run(["pip", "install", "spandrel", "kornia"])
77
+
78
  # Create model directories
79
  os.makedirs("ComfyUI/models/diffusion_models", exist_ok=True)
80
  os.makedirs("ComfyUI/models/clip", exist_ok=True)