iamgroot1212 commited on
Commit
14f4c84
Β·
verified Β·
1 Parent(s): a34edd9

Upload run_setup.sh

Browse files
Files changed (1) hide show
  1. scripts/run_setup.sh +89 -0
scripts/run_setup.sh ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # 1. Download ComfyUI
4
+ echo "▄︻デ══━一πŸ’₯ Runpod ComfyUI Setup Triggered"
5
+ sleep 1
6
+ echo "⚠️ Please Ensure You Have 250 GB Minimum Available!"
7
+ sleep 1
8
+ echo "➑️ Cloning ComfyUI ...βŒ›"
9
+ cd /workspace
10
+ git clone https://github.com/comfyanonymous/ComfyUI.git
11
+ echo "βœ… ComfyUI Cloned Successfully!"
12
+
13
+ # 2. Creating Python venv
14
+ echo "➑️ Creating Python Virtual Environment ...βŒ›"
15
+ cd ComfyUI
16
+ python3 -m venv venv
17
+ source venv/bin/activate
18
+ echo "βœ… Python Virtual Environment Created Successfully!"
19
+
20
+ # 3. Run ComfyUI requirements
21
+ echo "➑️ Installing ComfyUI Requirements ...βŒ›"
22
+ pip install -r requirements.txt
23
+ echo "βœ… ComfyUI Requirements Installed Successfully!"
24
+
25
+ # 4. Download ComfyUI-Manager
26
+ echo "➑️ Installing ComfyUI-Manager ...βŒ›"
27
+ cd custom_nodes
28
+ git clone https://github.com/ltdrdata/ComfyUI-Manager.git
29
+ echo "βœ… ComfyUI-Manager Installed Successfully!"
30
+
31
+ # 5. Run ComfyUI-Manager requirements
32
+ echo "➑️ Installing ComfyUI-Manager Requirements ...βŒ›"
33
+ cd ComfyUI-Manager
34
+ pip install -r requirements.txt
35
+ echo "βœ… ComfyUI-Manager Requirements Installed Successfully!"
36
+
37
+ # 6. Create specific directory structure
38
+ echo "➑️ Creating Necessary Directories ...βŒ›"
39
+ cd /workspace/ComfyUI
40
+ mkdir -p input/Captioning input/Voices
41
+ mkdir -p output/Z-Image output/Qwen-Image output/WanRaw output/Videos output/Captions
42
+ mkdir -p models/checkpoints/Qwen
43
+ mkdir -p models/vae/Qwen models/vae/Z-Image models/vae/Wan
44
+ mkdir -p models/text_encoders/Qwen models/text_encoders/Z-Image models/text_encoders/Wan
45
+ mkdir -p models/diffusion_models/Qwen models/diffusion_models/Z-Image models/diffusion_models/WanI2V
46
+ mkdir -p models/loras/Z-Image models/loras/Qwen models/loras/WanI2V
47
+ echo "βœ… Necessary Directories Created Successfully!"
48
+
49
+ # 7. Download necessary models
50
+ echo "➑️ Downloading Necessary Models ...βŒ›"
51
+ echo "🌐 Downloading Phr00t Qwen-Image-Edit-Rapid-AIO ...βŒ›"
52
+ cd /workspace/ComfyUI/models/checkpoints/Qwen
53
+ wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/diffusion-model/Qwen-Rapid-AIO-NSFW-v23.safetensors?download=true" --content-disposition
54
+ echo "βœ… Download Complete!"
55
+
56
+ echo "🌐 Downloading Z-Image-Turbo Models ...βŒ›"
57
+ cd /workspace/ComfyUI/models/diffusion_models/Z-Image
58
+ wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/diffusion-model/ZIT-NSFW-PhotorealisticV6.2-bf16.safetensors?download=true" --content-disposition
59
+ wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/diffusion-model/ZIT-bf16-Vanila.safetensors?download=true" --content-disposition
60
+ cd /workspace/ComfyUI/models/text_encoders/Z-Image
61
+ wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/text-encoder/qwen_3_4b.safetensors?download=true" --content-disposition
62
+ cd /workspace/ComfyUI/models/vae/Z-Image
63
+ wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/vae/ae.safetensors?download=true" --content-disposition
64
+ echo "βœ… Download Complete!"
65
+
66
+ echo "🌐 Downloading Wan2.2 Image To Video Models ...βŒ›"
67
+ cd /workspace/ComfyUI/models/diffusion_models/WanI2V
68
+ wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/diffusion-model/wan2.2-i2v-high-DaSiWaV9.safetensors?download=true" --content-disposition
69
+ wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/diffusion-model/wan2.2-i2v-low-DaSiWaV9.safetensors?download=true" --content-disposition
70
+ cd /workspace/ComfyUI/models/text_encoders/Wan
71
+ wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/text-encoder/nsfw_wan_umt5-xxl_fp8_scaled.safetensors?download=true" --content-disposition
72
+ wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/text-encoder/umt5-xxl-enc-fp8_e4m3fn.safetensors?download=true" --content-disposition
73
+ cd /workspace/ComfyUI/models/vae/Wan
74
+ wget "https://huggingface.co/iamgroot1212/comfyui-setup/resolve/main/vae/wan_2.1_vae.safetensors?download=true" --content-disposition
75
+ echo "βœ… Download Complete!"
76
+
77
+ echo "🌐 Downloading Wan2.2 Image To Video LoRas ...βŒ›"
78
+ cd /workspace/ComfyUI
79
+ python -c "from huggingface_hub import snapshot_download; snapshot_download(repo_id='iamgroot1212/wan2.2-loras', local_dir='/workspace/ComfyUI/models/loras/WanI2V', local_dir_use_symlinks=False)"
80
+ echo "βœ… Download Complete!"
81
+ sleep 1
82
+
83
+ # 8. Setup complete
84
+ echo "βœ… All Necessary Models Downloaded Successfully!"
85
+ sleep 1
86
+ echo "βœ… Setup Complete! Runpod ComfyUI Ready!"
87
+ deactivate
88
+ clear
89
+ echo "πŸš€ ComfyUI Ready For Launch!"