File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424/openpose
2525/ModelScope
2626/LyCORIS
27+ /GLIGEN
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
3636
3737# add info
3838COPY . /docker/
39+ RUN cp /docker/extra_model_paths.yaml ${ROOT}
3940
4041ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility NVIDIA_VISIBLE_DEVICES=all
4142ENV PYTHONPATH="${PYTHONPATH}:${PWD}" CLI_ARGS=""
Original file line number Diff line number Diff line change 22
33set -Eeuo pipefail
44
5- declare -A MOUNTS
6-
7-
85mkdir -vp /data/config/comfy/
96
10- # cache
11- MOUNTS[" /root/.cache" ]=/data/.cache
12- # ui specific
13- MOUNTS[" ${ROOT} /models/checkpoints" ]=" /data/StableDiffusion"
14- MOUNTS[" ${ROOT} /models/controlnet" ]=" /data/ControlNet"
15- MOUNTS[" ${ROOT} /models/upscale_models/RealESRGAN" ]=" /data/RealESRGAN"
16- MOUNTS[" ${ROOT} /models/upscale_models/GFPGAN" ]=" /data/GFPGAN"
17- MOUNTS[" ${ROOT} /models/upscale_models/SwinIR" ]=" /data/SwinIR"
18- MOUNTS[" ${ROOT} /models/vae" ]=" /data/VAE"
19-
20- # data
21- MOUNTS[" ${ROOT} /models/loras" ]=" /data/Lora"
22- MOUNTS[" ${ROOT} /models/embeddings" ]=" /data/embeddings"
23-
24- # config
25- # TODO: I am not sure if this is final, maybe it should change in the future
26- MOUNTS[" ${ROOT} /models/clip" ]=" /data/.cache/comfy/clip"
27- MOUNTS[" ${ROOT} /models/clip_vision" ]=" /data/.cache/comfy/clip_vision"
28- MOUNTS[" ${ROOT} /models/custom_nodes" ]=" /data/config/comfy/custom_nodes"
29- MOUNTS[" ${ROOT} /models/style_models" ]=" /data/config/comfy/style_models"
30- MOUNTS[" ${ROOT} /models/t2i_adapter" ]=" /data/config/comfy/t2i_adapter"
7+ declare -A MOUNTS
318
32- # output
9+ MOUNTS[" /root/.cache" ]=" /data/.cache"
10+ MOUNTS[" ${ROOT} /input" ]=" /data/config/comfy/input"
3311MOUNTS[" ${ROOT} /output" ]=" /output/comfy"
3412
3513for to_path in " ${! MOUNTS[@]} " ; do
Original file line number Diff line number Diff line change 1+ a111 :
2+ base_path : /data
3+
4+ checkpoints : StableDiffusion
5+ configs : StableDiffusion
6+ vae : VAE
7+ loras : Lora
8+ upscale_models : |
9+ RealESRGAN
10+ ESRGAN
11+ SwinIR
12+ GFPGAN
13+ embeddings : embeddings
14+ hypernetworks : Hypernetworks
15+ controlnet : ControlNet
16+ gligen : GLIGEN
17+ custom_nodes : config/comfy/custom_nodes
18+
19+ # TODO: I am unsure about these, need more testing
20+ # clip: .cache/clip
21+ # style_models: config/comfy/style_models
22+ # t2i_adapter: config/comfy/t2i_adapter
23+ # clip_vision: config/comfy/clip_vision
24+ # diffusers: config/comfy/diffusers
Original file line number Diff line number Diff line change 33set -Eeuo pipefail
44
55# TODO: maybe just use the .gitignore file to create all of these
6- mkdir -vp /data/.cache /data/StableDiffusion /data/LyCORIS /data/Codeformer /data/ModelScope /data/GFPGAN /data/ESRGAN /data/BSRGAN /data/RealESRGAN /data/SwinIR /data/LDSR /data/ScuNET /data/embeddings /data/VAE /data/Deepdanbooru /data/MiDaS /data/Lora /data/ControlNet /data/openpose
6+ mkdir -vp /data/.cache /data/StableDiffusion /data/LyCORIS /data/Codeformer /data/ModelScope /data/GFPGAN /data/ESRGAN /data/BSRGAN /data/RealESRGAN /data/SwinIR /data/LDSR /data/ScuNET /data/embeddings /data/VAE /data/Deepdanbooru /data/MiDaS /data/Lora /data/ControlNet /data/openpose /data/GLIGEN
77
88echo " Downloading, this might take a while..."
99
You can’t perform that action at this time.
0 commit comments