Download 1_setup.sh from ShikharBansal/Test: direct link, hf CLI and curl.
- Browser
- Download file 968 Bytes
-
https://huggingface.co/ShikharBansal/Test/resolve/main/1_setup.sh
- Command line
-
hf download hf://ShikharBansal/Test/1_setup.sh
-
curl -L -o 1_setup.sh https://huggingface.co/ShikharBansal/Test/resolve/main/1_setup.sh
968 Bytes
| set -e | |
| # --- Initialize or update ComfyUI repo --- | |
| if [ -d "ComfyUI" ]; then | |
| cd ComfyUI | |
| git pull | |
| else | |
| git clone https://github.com/comfyanonymous/ComfyUI.git | |
| cd ComfyUI | |
| fi | |
| # --- Python virtual environment --- | |
| if [ ! -d "venv" ]; then | |
| python3 -m venv venv | |
| fi | |
| source venv/bin/activate | |
| # --- Core requirements for ComfyUI --- | |
| pip install --upgrade pip | |
| pip install -r requirements.txt | |
| # --- Install/Update ComfyUI Manager --- | |
| cd custom_nodes | |
| if [ ! -d "ComfyUI-Manager" ]; then | |
| git clone https://github.com/ltdrdata/ComfyUI-Manager.git | |
| fi | |
| cd ComfyUI-Manager | |
| git pull | |
| if [ -f requirements.txt ]; then | |
| pip install -r requirements.txt | |
| fi | |
| cd ../ | |
| # --- Install/Update ComfyUI-GGUF (GGUF support) --- | |
| if [ ! -d "ComfyUI-GGUF" ]; then | |
| git clone https://github.com/city96/ComfyUI-GGUF | |
| fi | |
| cd ComfyUI-GGUF | |
| git pull | |
| if [ -f requirements.txt ]; then | |
| pip install -r requirements.txt | |
| fi | |
| cd .. | |
| pip install --upgrade gguf | |
| cd ../ | |
| echo "Setup complete." | |