Spaces:
Runtime error
Runtime error
| FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| TZ=America/Los_Angeles | |
| ARG USE_PERSISTENT_DATA | |
| RUN apt-get update | |
| git \ | |
| make build-essential libssl-dev zlib1g-dev \ | |
| libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \ | |
| libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev git-lfs \ | |
| ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx \ | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| RUN curl https://pyenv.run | bash | |
| ENV PATH=$HOME/.pyenv/shims:$HOME/.pyenv/bin:$PATH | |
| ARG PYTHON_VERSION=3.9.17 | |
| RUN pyenv install $PYTHON_VERSION | |
| pyenv global $PYTHON_VERSION | |
| pyenv rehash | |
| pip install --no-cache-dir --upgrade pip setuptools wheel | |
| pip install --no-cache-dir \ | |
| datasets \ | |
| huggingface-hub "protobuf<4" "click<8.1" | |
| pip install scikit-image | |
| pip install numba | |
| pip install dynamicprompts | |
| pip install onnxruntime | |
| pip install color-matcher | |
| pip install piexif | |
| pip install dynamicprompts | |
| pip install lpips | |
| pip install llama-cpp-python | |
| pip install einops | |
| pip install torchsde | |
| pip install ultralytics | |
| pip install simpleeval | |
| pip install gray2color | |
| pip install segment-anything | |
| pip install typing-aliases | |
| pip install typing-extensions | |
| pip install insightface | |
| pip install deepdiff | |
| pip install addict | |
| pip install pynvml | |
| pip install yapf | |
| pip install numexpr | |
| pip install timm | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| WORKDIR $HOME/app | |
| RUN git clone https://github.com/comfyanonymous/ComfyUI.git . && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| RUN echo "Downloading checkpoints..." | |
| wget -c https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.safetensors -P ./models/vae/ && \ | |
| wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_lineart_fp16.safetensors -P ./models/controlnet/ && \ | |
| wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15_openpose_fp16.safetensors -P ./models/controlnet/ && \ | |
| wget -c https://huggingface.co/lokCX/4x-Ultrasharp/blob/main/4x-UltraSharp.pth -P ./models/upscale_models/ && \ | |
| echo "Installing custom nodes..." | |
| RUN cd custom_nodes | |
| git clone https://github.com/ltdrdata/ComfyUI-Manager.git && \ | |
| git clone https://github.com/civitai/civitai_comfy_nodes.git && \ | |
| git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite.git && \ | |
| git clone https://github.com/Fannovel16/comfyui_controlnet_aux.git && \ | |
| git clone https://github.com/FizzleDorf/ComfyUI_FizzNodes.git && \ | |
| git clone https://github.com/Kosinkadink/ComfyUI-Advanced-ControlNet.git && \ | |
| git clone https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved.git && \ | |
| git clone https://github.com/adieyal/comfyui-dynamicprompts.git && \ | |
| git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts.git && \ | |
| git clone https://github.com/rgthree/rgthree-comfy.git && \ | |
| git clone https://github.com/TinyTerra/ComfyUI_tinyterraNodes.git && \ | |
| git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack.git && \ | |
| git clone https://github.com/mav-rik/facerestore_cf.git && \ | |
| git clone https://github.com/Stability-AI/stability-ComfyUI-nodes.git && \ | |
| git clone https://github.com/Derfuu/Derfuu_ComfyUI_ModdedNodes.git && \ | |
| git clone https://github.com/giriss/comfy-image-saver.git && \ | |
| git clone https://github.com/Nuked88/ComfyUI-N-Nodes.git && \ | |
| git clone https://github.com/jags111/efficiency-nodes-comfyui.git && \ | |
| git clone https://github.com/bmad4ever/comfyui_bmad_nodes.git | |
| RUN cd custom_nodes | |
| git clone https://github.com/cubiq/ComfyUI_IPAdapter_plus.git && \ | |
| git clone https://github.com/chrisgoringe/cg-use-everywhere.git && \ | |
| git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git && \ | |
| git clone https://github.com/WASasquatch/was-node-suite-comfyui.git && \ | |
| git clone https://github.com/theUpsider/ComfyUI-Logic.git && \ | |
| git clone https://github.com/evanspearman/ComfyMath.git && \ | |
| git clone https://github.com/WASasquatch/PowerNoiseSuite && \ | |
| git clone https://github.com/cubiq/ComfyUI_essentials.git && \ | |
| git clone https://github.com/mcmonkeyprojects/sd-dynamic-thresholding.git && \ | |
| git clone https://github.com/ltdrdata/ComfyUI-Inspire-Pack.git && \ | |
| git clone https://github.com/Fannovel16/ComfyUI-Frame-Interpolation.git && \ | |
| git clone https://github.com/BlenderNeko/ComfyUI_ADV_CLIP_emb.git && \ | |
| git clone https://github.com/Gourieff/comfyui-reactor-node.git && \ | |
| git clone https://github.com/Nourepide/ComfyUI-Allor.git && \ | |
| git clone https://github.com/storyicon/comfyui_segment_anything.git && \ | |
| git clone https://github.com/crystian/ComfyUI-Crystools && \ | |
| git clone https://github.com/EllangoK/ComfyUI-post-processing-nodes && \ | |
| git clone https://github.com/melMass/comfy_mtb.git | |
| RUN echo "Installing custom nodes..." | |
| RUN wget -c https://huggingface.co/guoyww/animatediff/blob/main/v3_sd15_mm.ckpt -P ./custom_nodes/ComfyUI-AnimateDiff-Evolved/models/ | |
| RUN wget -c https://huggingface.co/CiaraRowles/TemporalDiff/blob/main/temporaldiff-v1-animatediff.safetensors -P ./ComfyUI-AnimateDiff-Evolved/models/ | |
| RUN echo "Done" | |
| RUN pip install torch==2.0.0+cu118 torchvision==0.15.1+cu118 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118 | |
| RUN mkdir -p /home/user/app/models/insightface | |
| CMD ["python", "main.py", "--cpu", "--listen", "0.0.0.0", "--cpu", "--port", "7860", "--use-split-cross-attention", "--multi-user"] | |