LuckyOda commited on
Commit
2068423
·
verified ·
1 Parent(s): 3425c1f

Upload provision_full.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. provision_full.sh +57 -19
provision_full.sh CHANGED
@@ -1,7 +1,10 @@
1
  #!/bin/bash
2
  set -e
3
  REPO="https://huggingface.co/LuckyOda/comfyui-full-pack/resolve/main"
4
- CD="${COMFYUI_DIR:-/workspace/ComfyUI}/models"
 
 
 
5
 
6
  dl() {
7
  local f="$1" d="$2"
@@ -12,8 +15,49 @@ dl() {
12
  wget -q --show-progress -O "$target" "$REPO/$(echo $f | sed 's/ /%20/g')" || true
13
  }
14
 
15
- echo "=== ComfyUI Full Pack Provisioning ==="
16
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  echo ">>> checkpoints"
18
  dl "SDXLNSFW.safetensors" "$CD/checkpoints"
19
  dl "v1-5-pruned-emaonly-fp16.safetensors" "$CD/checkpoints"
@@ -22,6 +66,10 @@ echo ">>> clip_vision"
22
  dl "IronSight_V7.safetensors" "$CD/clip_vision"
23
  dl "clip_vision_h.safetensors" "$CD/clip_vision"
24
 
 
 
 
 
25
  echo ">>> detection"
26
  dl "vitpose_h_wholebody_data.bin" "$CD/detection"
27
  dl "vitpose_h_wholebody_model.onnx" "$CD/detection"
@@ -42,7 +90,6 @@ dl "wan2.2_animate_14B_bf16.safetensors" "$CD/diffusion_models"
42
  dl "Wan2_2-Animate-14B_fp8_scaled_e4m3fn_KJ_v2.safetensors" "$CD/diffusion_models"
43
  dl "z_image_turbo_bf16.safetensors" "$CD/diffusion_models"
44
  dl "zimage.safetensors" "$CD/diffusion_models"
45
- dl "z_image_turbo_bf16.safetensors" "$CD/diffusion_models"
46
  dl "diffusion_pytorch_model-00001-of-00002.safetensors" "$CD/diffusion_models"
47
 
48
  echo ">>> loras"
@@ -63,6 +110,9 @@ dl "makima_Z.safetensors" "$CD/loras"
63
  dl "primary_net_v2.safetensors" "$CD/loras"
64
  dl "wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors" "$CD/loras"
65
  dl "x_gen_weights.safetensors" "$CD/loras"
 
 
 
66
 
67
  echo ">>> sam2"
68
  dl "sam2.1_hiera_base_plus-fp16.safetensors" "$CD/sam2"
@@ -84,14 +134,11 @@ dl "qwen_3_8b.safetensors" "$CD/text_encoders"
84
  dl "umt5.safetensors" "$CD/text_encoders"
85
  dl "umt5_xxl_fp8_e4m3fn_scaled.safetensors" "$CD/text_encoders"
86
 
87
- echo ">>> clip (animator)"
88
- dl "umt5_xxl_fp8_e4m3fn_scaled.safetensors" "$CD/clip"
89
- dl "clip_vision_h.safetensors" "$CD/clip"
90
-
91
  echo ">>> ultralytics"
92
  dl "lips_v1.pt" "$CD/ultralytics"
93
  dl "nipple.pt" "$CD/ultralytics"
94
  dl "pussyV2.pt" "$CD/ultralytics"
 
95
  dl "face_yolov8m.pt" "$CD/ultralytics/bbox"
96
  dl "hand_yolov8s.pt" "$CD/ultralytics/bbox"
97
  dl "person_yolov8m-seg.pt" "$CD/ultralytics/segm"
@@ -113,16 +160,7 @@ dl "flux2-vae.safetensors" "$CD/vae"
113
  dl "variational_encoder_primary.safetensors" "$CD/vae"
114
  dl "wan_2.1_vae.safetensors" "$CD/vae"
115
 
116
- echo ">>> custom nodes"
117
- wget -q --show-progress -O /tmp/nodes.tar.gz "$REPO/all_custom_nodes.tar.gz"
118
- cd "${COMFYUI_DIR:-/workspace/ComfyUI}/custom_nodes"
119
- tar -xzf /tmp/nodes.tar.gz
120
- rm -f /tmp/nodes.tar.gz
121
-
122
- echo ">>> animator custom nodes"
123
- wget -q --show-progress -O /tmp/anodes.tar.gz "$REPO/animator_custom_nodes.tar.gz"
124
- cd "${COMFYUI_DIR:-/workspace/ComfyUI}/custom_nodes"
125
- tar -xzf /tmp/anodes.tar.gz
126
- rm -f /tmp/anodes.tar.gz
127
 
128
  echo "=== Full Pack Complete ==="
 
1
  #!/bin/bash
2
  set -e
3
  REPO="https://huggingface.co/LuckyOda/comfyui-full-pack/resolve/main"
4
+ COMFY="${COMFYUI_DIR:-/workspace/ComfyUI}"
5
+ CD="$COMFY/models"
6
+ PIP="${VENV_PIP:-/venv/main/bin/pip}"
7
+ [ ! -f "$PIP" ] && PIP="pip"
8
 
9
  dl() {
10
  local f="$1" d="$2"
 
15
  wget -q --show-progress -O "$target" "$REPO/$(echo $f | sed 's/ /%20/g')" || true
16
  }
17
 
18
+ echo "=== LuckyOda Full Pack Provisioning ==="
19
+
20
+ # ============================================
21
+ # CUSTOM NODES
22
+ # ============================================
23
+ echo ">>> Installing custom nodes"
24
+ cd "$COMFY/custom_nodes"
25
+ repos=(
26
+ "https://github.com/evanspearman/ComfyMath.git"
27
+ "https://github.com/LeonQ8/ComfyUI-Dynamic-Lora-Scheduler.git"
28
+ "https://github.com/Comfy-Org/ComfyUI-Manager.git"
29
+ "https://github.com/ru4ls/ComfyUI_Nano_Banana.git"
30
+ "https://github.com/aining2022/ComfyUI_Swwan.git"
31
+ "https://github.com/replicate/comfyui-replicate.git"
32
+ "https://github.com/un-seen/comfyui-tensorops.git"
33
+ "https://github.com/thatboymentor/ofmtechclip.git"
34
+ "https://github.com/rgthree/rgthree-comfy.git"
35
+ "https://github.com/kijai/ComfyUI-KJNodes.git"
36
+ "https://github.com/pythongosssss/ComfyUI-Custom-Scripts.git"
37
+ "https://github.com/yolain/ComfyUI-Easy-Use.git"
38
+ "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite.git"
39
+ "https://github.com/kijai/ComfyUI-segment-anything-2.git"
40
+ "https://github.com/Fannovel16/comfyui_controlnet_aux.git"
41
+ "https://github.com/ltdrdata/ComfyUI-Impact-Pack.git"
42
+ "https://github.com/chflame163/ComfyUI_LayerStyle.git"
43
+ "https://github.com/cubiq/ComfyUI_essentials.git"
44
+ )
45
+ for r in "${repos[@]}"; do
46
+ dir=$(basename "$r" .git)
47
+ [ -d "$dir" ] && echo " [SKIP] $dir" && continue
48
+ echo " [CLONE] $dir"
49
+ git clone "$r" --recursive 2>/dev/null || true
50
+ done
51
+
52
+ echo ">>> Installing pip dependencies"
53
+ for req in $(find "$COMFY/custom_nodes" -maxdepth 2 -name "requirements.txt"); do
54
+ $PIP install -q -r "$req" 2>/dev/null || true
55
+ done
56
+ $PIP install -q piexif PyWavelets 2>/dev/null || true
57
+
58
+ # ============================================
59
+ # MODELS
60
+ # ============================================
61
  echo ">>> checkpoints"
62
  dl "SDXLNSFW.safetensors" "$CD/checkpoints"
63
  dl "v1-5-pruned-emaonly-fp16.safetensors" "$CD/checkpoints"
 
66
  dl "IronSight_V7.safetensors" "$CD/clip_vision"
67
  dl "clip_vision_h.safetensors" "$CD/clip_vision"
68
 
69
+ echo ">>> clip"
70
+ dl "umt5_xxl_fp8_e4m3fn_scaled.safetensors" "$CD/clip"
71
+ dl "clip_vision_h.safetensors" "$CD/clip"
72
+
73
  echo ">>> detection"
74
  dl "vitpose_h_wholebody_data.bin" "$CD/detection"
75
  dl "vitpose_h_wholebody_model.onnx" "$CD/detection"
 
90
  dl "Wan2_2-Animate-14B_fp8_scaled_e4m3fn_KJ_v2.safetensors" "$CD/diffusion_models"
91
  dl "z_image_turbo_bf16.safetensors" "$CD/diffusion_models"
92
  dl "zimage.safetensors" "$CD/diffusion_models"
 
93
  dl "diffusion_pytorch_model-00001-of-00002.safetensors" "$CD/diffusion_models"
94
 
95
  echo ">>> loras"
 
110
  dl "primary_net_v2.safetensors" "$CD/loras"
111
  dl "wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors" "$CD/loras"
112
  dl "x_gen_weights.safetensors" "$CD/loras"
113
+ dl "FameGrid_Revolution_ZIB_BOLD_ (1).safetensors" "$CD/loras"
114
+ dl "f6242fb5-cf69-467f-9947-3eb0601295c2-u1_b4f6c962-d35c-4e2a-8e2b-a9fed14b0921.safetensors" "$CD/loras"
115
+ dl "4c79a09e-7ace-4cd7-946d-f638ccf67523-u2_d27d5558-b0b8-4bcc-80eb-8c968a17b751.safetensors" "$CD/loras"
116
 
117
  echo ">>> sam2"
118
  dl "sam2.1_hiera_base_plus-fp16.safetensors" "$CD/sam2"
 
134
  dl "umt5.safetensors" "$CD/text_encoders"
135
  dl "umt5_xxl_fp8_e4m3fn_scaled.safetensors" "$CD/text_encoders"
136
 
 
 
 
 
137
  echo ">>> ultralytics"
138
  dl "lips_v1.pt" "$CD/ultralytics"
139
  dl "nipple.pt" "$CD/ultralytics"
140
  dl "pussyV2.pt" "$CD/ultralytics"
141
+ mkdir -p "$CD/ultralytics/bbox" "$CD/ultralytics/segm"
142
  dl "face_yolov8m.pt" "$CD/ultralytics/bbox"
143
  dl "hand_yolov8s.pt" "$CD/ultralytics/bbox"
144
  dl "person_yolov8m-seg.pt" "$CD/ultralytics/segm"
 
160
  dl "variational_encoder_primary.safetensors" "$CD/vae"
161
  dl "wan_2.1_vae.safetensors" "$CD/vae"
162
 
163
+ echo ">>> Restarting ComfyUI"
164
+ supervisorctl restart comfyui 2>/dev/null || true
 
 
 
 
 
 
 
 
 
165
 
166
  echo "=== Full Pack Complete ==="