mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-01-03 07:10:10 +01:00
Updates to ComfyUI for ComfyManager and other custom nodes
This commit is contained in:
parent
6a34739135
commit
a67265d872
|
|
@ -8,6 +8,15 @@ ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y git && apt-get clean
|
RUN apt-get update && apt-get install -y git && apt-get clean
|
||||||
|
|
||||||
|
# add some packages for some custom nodes in comfyui
|
||||||
|
RUN apt-get install 'libglib2.0-0' -y
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install 'libgl1-mesa-glx' -y
|
||||||
|
RUN apt-get install 'python-dev' -y
|
||||||
|
|
||||||
|
# install pip package for codeformer face detection custom node
|
||||||
|
RUN pip install lpips
|
||||||
|
|
||||||
ENV ROOT=/stable-diffusion
|
ENV ROOT=/stable-diffusion
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
git clone https://github.com/comfyanonymous/ComfyUI.git ${ROOT} && \
|
git clone https://github.com/comfyanonymous/ComfyUI.git ${ROOT} && \
|
||||||
|
|
@ -24,7 +33,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
|
|
||||||
WORKDIR ${ROOT}
|
WORKDIR ${ROOT}
|
||||||
|
|
||||||
ARG BRANCH=master SHA=7e941f9f247f9b013a33c2e7d117466108414e99
|
ARG BRANCH=master SHA=c97be4db91d4a249c19afdf88fa1cf3268544e45
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
git fetch && \
|
git fetch && \
|
||||||
git checkout ${BRANCH} && \
|
git checkout ${BRANCH} && \
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,34 @@ MOUNTS["/root/.cache"]="/data/.cache"
|
||||||
MOUNTS["${ROOT}/input"]="/data/config/comfy/input"
|
MOUNTS["${ROOT}/input"]="/data/config/comfy/input"
|
||||||
MOUNTS["${ROOT}/output"]="/output/comfy"
|
MOUNTS["${ROOT}/output"]="/output/comfy"
|
||||||
|
|
||||||
|
# mount various locations for comfyui to keep custom nodes and models downloaded with comfyui manager
|
||||||
|
MOUNTS["${ROOT}/custom_nodes"]="/data/config/comfy/custom_nodes"
|
||||||
|
|
||||||
|
MOUNTS["${ROOT}/models/checkpoints"]="/data/models/checkpoints"
|
||||||
|
#MOUNTS["${ROOT}/models/configs"]="/data/models/configs"
|
||||||
|
MOUNTS["${ROOT}/models/embeddings"]="/data/models/embeddings"
|
||||||
|
MOUNTS["${ROOT}/models/gligen"]="/data/models/gligen"
|
||||||
|
MOUNTS["${ROOT}/models/mmdets"]="/data/models/mmdets"
|
||||||
|
MOUNTS["${ROOT}/models/style_models"]="/data/models/style_models"
|
||||||
|
#MOUNTS["${ROOT}/models/vae"]="/data/models/vae"
|
||||||
|
#MOUNTS["${ROOT}/models/clip"]="/data/models/clip"
|
||||||
|
#MOUNTS["${ROOT}/models/controlnet"]="/data/models/controlnet"
|
||||||
|
MOUNTS["${ROOT}/models/facedetection"]="/data/models/facedetection"
|
||||||
|
|
||||||
|
MOUNTS["${ROOT}/models/hypernetworks"]="/data/models/hypernetworks"
|
||||||
|
|
||||||
|
|
||||||
|
#MOUNTS["${ROOT}/models/onnx"]="/data/models/onnx"
|
||||||
|
#MOUNTS["${ROOT}/models/unet"]="/data/models/unet"
|
||||||
|
MOUNTS["${ROOT}/models/vae_approx"]="/data/models/vae-approx"
|
||||||
|
#MOUNTS["${ROOT}/models/clip_vision"]="/data/models/clip_vision"
|
||||||
|
#MOUNTS["${ROOT}/models/diffusers"]="/data/models/diffusers"
|
||||||
|
MOUNTS["${ROOT}/models/facerestore_models"]="/data/models/facerestore_models"
|
||||||
|
MOUNTS["${ROOT}/models/loras"]="/data/models/lora"
|
||||||
|
MOUNTS["${ROOT}/models/sams"]="/data/models/sams"
|
||||||
|
MOUNTS["${ROOT}/models/upscale_models"]="/data/models/upscale_models"
|
||||||
|
|
||||||
|
|
||||||
for to_path in "${!MOUNTS[@]}"; do
|
for to_path in "${!MOUNTS[@]}"; do
|
||||||
set -Eeuo pipefail
|
set -Eeuo pipefail
|
||||||
from_path="${MOUNTS[${to_path}]}"
|
from_path="${MOUNTS[${to_path}]}"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ a111:
|
||||||
checkpoints: models/Stable-diffusion
|
checkpoints: models/Stable-diffusion
|
||||||
configs: models/Stable-diffusion
|
configs: models/Stable-diffusion
|
||||||
vae: models/VAE
|
vae: models/VAE
|
||||||
loras: models/Lora
|
#loras: models/Lora
|
||||||
upscale_models: |
|
upscale_models: |
|
||||||
models/RealESRGAN
|
models/RealESRGAN
|
||||||
models/ESRGAN
|
models/ESRGAN
|
||||||
|
|
@ -16,10 +16,24 @@ a111:
|
||||||
clip: models/CLIPEncoder
|
clip: models/CLIPEncoder
|
||||||
embeddings: embeddings
|
embeddings: embeddings
|
||||||
|
|
||||||
custom_nodes: config/comfy/custom_nodes
|
#custom_nodes: config/comfy/custom_nodes
|
||||||
|
|
||||||
# TODO: I am unsure about these, need more testing
|
# TODO: I am unsure about these, need more testing
|
||||||
# style_models: config/comfy/style_models
|
# style_models: config/comfy/style_models
|
||||||
# t2i_adapter: config/comfy/t2i_adapter
|
# t2i_adapter: config/comfy/t2i_adapter
|
||||||
# clip_vision: config/comfy/clip_vision
|
# clip_vision: config/comfy/clip_vision
|
||||||
# diffusers: config/comfy/diffusers
|
# diffusers: config/comfy/diffusers
|
||||||
|
|
||||||
|
# may not need these since I'm adding mounts instead
|
||||||
|
#facerestore_models: models/facerestore_models
|
||||||
|
#sams: models/sams
|
||||||
|
#unet: models/unet
|
||||||
|
#vae_approx: models/vae_approx
|
||||||
|
#face_restore: models/face_restore
|
||||||
|
#mmdets: models/mmdets
|
||||||
|
#style_models: models/style_models
|
||||||
|
#clip_vision: models/clip_vision
|
||||||
|
#diffusers: models/diffusers
|
||||||
|
#facedetection: models/facedetection
|
||||||
|
#onnx: models/onnx
|
||||||
|
#ultralytics: models/ultralytics
|
||||||
Loading…
Reference in a new issue