ArsVie commited on
Commit
09d6956
Β·
verified Β·
1 Parent(s): 06cd987

Inline ComfyUI deps (fix -r build error)

Browse files
Files changed (1) hide show
  1. requirements.txt +51 -15
requirements.txt CHANGED
@@ -1,28 +1,64 @@
1
  # ── Core app + LLM (transformers backend on ZeroGPU) ──────────────────
2
- torch
3
  transformers>=4.56
4
  accelerate
5
  bitsandbytes
6
  spaces
7
  requests
8
  pillow
9
- numpy
10
  huggingface_hub[hf_transfer]
11
  gradio==6.16.0
12
 
13
- # ── In-process ComfyUI (embed transport, ZeroGPU only) ────────────────
14
- # ComfyUI + the custom nodes are vendored as git submodules under
15
- # third_party/comfyui (pinned to the same commits as the Dockerfile). Pull
16
- # in their exact pinned deps so the embedded executor matches the validated
17
- # install. These -r paths resolve at build time because the Space clones the
18
- # repo with its submodules. If a build can't see them (submodules not
19
- # initialised), the embed path degrades to the curated cast and the lines
20
- # below can be replaced with the explicit dep list from each requirements.txt.
21
- -r third_party/comfyui/requirements.txt
22
- -r third_party/custom_nodes/ComfyUI-GGUF/requirements.txt
23
- -r third_party/custom_nodes/comfyui-impact-pack/requirements.txt
24
- -r third_party/custom_nodes/ComfyUI-Impact-Subpack/requirements.txt
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
- # Background removal for alpha sprites (matches Dockerfile's extra installs).
27
  rembg[cpu]
28
  onnxruntime
 
1
  # ── Core app + LLM (transformers backend on ZeroGPU) ──────────────────
 
2
  transformers>=4.56
3
  accelerate
4
  bitsandbytes
5
  spaces
6
  requests
7
  pillow
8
+ numpy>=1.25.0
9
  huggingface_hub[hf_transfer]
10
  gradio==6.16.0
11
 
12
+ # ── In-process ComfyUI (embed transport, ZeroGPU) ─────────────────────
13
+ # ComfyUI + custom-node deps INLINED here, not `-r third_party/...`: HF's
14
+ # gradio build installs requirements.txt in isolation (the repo isn't mounted
15
+ # yet), so relative -r includes can't resolve. Versions track ComfyUI commit
16
+ # b6332446 + the pinned custom nodes. torch itself is provided by the Space
17
+ # base image (build appends torch<=2.11.0); we only add the siblings. SAM2
18
+ # (git+facebookresearch/sam2) is intentionally omitted β€” the pipeline uses SAM
19
+ # ViT-B via SAMLoader, validated without SAM2; and PyOpenGL/glfw (GLSL nodes,
20
+ # unused, need system GL) are omitted to keep the headless build clean.
21
+ # ComfyUI core
22
+ comfyui-frontend-package==1.42.15
23
+ comfyui-workflow-templates==0.9.63
24
+ comfyui-embedded-docs==0.4.4
25
+ torchsde
26
+ torchvision
27
+ torchaudio
28
+ einops
29
+ tokenizers>=0.13.3
30
+ sentencepiece
31
+ safetensors>=0.4.2
32
+ aiohttp>=3.11.8
33
+ yarl>=1.18.0
34
+ pyyaml
35
+ scipy
36
+ tqdm
37
+ psutil
38
+ alembic
39
+ SQLAlchemy>=2.0.0
40
+ filelock
41
+ av>=14.2.0
42
+ comfy-kitchen>=0.2.8
43
+ comfy-aimdo==0.3.0
44
+ simpleeval>=1.0.0
45
+ blake3
46
+ kornia>=0.7.1
47
+ spandrel
48
+ pydantic~=2.0
49
+ pydantic-settings~=2.0
50
+ # ComfyUI-GGUF (Anima UNET loader)
51
+ gguf>=0.13.0
52
+ protobuf
53
+ # Impact-Pack + Impact-Subpack (face gate, FaceDetailer, SAM, YOLO)
54
+ segment-anything
55
+ scikit-image
56
+ piexif
57
+ opencv-python-headless
58
+ dill
59
+ matplotlib
60
+ ultralytics>=8.3.162
61
 
62
+ # ── Background removal for alpha sprites ──────────────────────────────
63
  rembg[cpu]
64
  onnxruntime