|
cd /workspace |
|
|
|
git clone https://github.com/comfyanonymous/ComfyUI |
|
|
|
cd /workspace/ComfyUI |
|
|
|
python -m venv venv |
|
|
|
source venv/bin/activate |
|
|
|
pip install -r requirements.txt |
|
|
|
pip uninstall torch torchvision torchaudio --yes |
|
|
|
pip3 install torch==2.2.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 --upgrade |
|
|
|
pip install xformers==0.0.24 |
|
|
|
pip install insightface==0.7.3 |
|
|
|
pip install ifnude --upgrade |
|
|
|
pip install onnxruntime-gpu |
|
|
|
cd /workspace/ComfyUI/custom_nodes |
|
|
|
git clone https://github.com/ltdrdata/ComfyUI-Manager |
|
|
|
git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack |
|
|
|
git clone https://github.com/Fannovel16/comfyui_controlnet_aux |
|
|
|
git clone https://github.com/Gourieff/comfyui-reactor-node |
|
|
|
git clone https://github.com/cubiq/ComfyUI_InstantID |
|
|
|
git clone https://github.com/cubiq/ComfyUI_essentials |
|
|
|
git clone https://github.com/cubiq/ComfyUI_IPAdapter_plus |
|
|
|
cd /workspace/ComfyUI |
|
|
|
wget -c https://huggingface.co/Lykon/dreamshaper-xl-lightning/resolve/main/DreamShaperXL_Lightning.safetensors -P ./models/checkpoints/ |
|
|
|
wget -c https://huggingface.co/Kuvshin/kuvshin8/resolve/main/inswapper_128.onnx -P ./models/insightface/ |
|
|
|
cd /workspace/ComfyUI |
|
|
|
wget -c https://huggingface.co/MonsterMMORPG/tools/resolve/main/1k3d68.onnx -P ./models/insightface/models/antelopev2/ |
|
|
|
wget -c https://huggingface.co/MonsterMMORPG/tools/resolve/main/2d106det.onnx -P ./models/insightface/models/antelopev2/ |
|
|
|
wget -c https://huggingface.co/MonsterMMORPG/tools/resolve/main/genderage.onnx -P ./models/insightface/models/antelopev2/ |
|
|
|
wget -c https://huggingface.co/MonsterMMORPG/tools/resolve/main/glintr100.onnx -P ./models/insightface/models/antelopev2/ |
|
|
|
wget -c https://huggingface.co/MonsterMMORPG/tools/resolve/main/scrfd_10g_bnkps.onnx -P ./models/insightface/models/antelopev2/ |
|
|
|
wget -c https://huggingface.co/InstantX/InstantID/resolve/main/ip-adapter.bin -P ./models/instantid/ |
|
|
|
wget -c https://huggingface.co/InstantX/InstantID/resolve/main/ControlNetModel/diffusion_pytorch_model.safetensors -P ./models/controlnet/ |
|
|
|
wget -c https://huggingface.co/xinsir/controlnet-openpose-sdxl-1.0/resolve/main/diffusion_pytorch_model.safetensors -O ./models/controlnet/pose.safetensors |
|
|
|
cd /workspace |