Spaces:
Runtime error
Runtime error
Upload 2 files
#2
by
rajeshhugface
- opened
- Dockerfile +14 -88
- biglust_full_workflow.json +159 -0
Dockerfile
CHANGED
|
@@ -1,94 +1,20 @@
|
|
| 1 |
-
FROM
|
| 2 |
-
|
| 3 |
-
ENV DEBIAN_FRONTEND=noninteractive \
|
| 4 |
-
TZ=America/Los_Angeles
|
| 5 |
-
|
| 6 |
-
ARG USE_PERSISTENT_DATA
|
| 7 |
|
|
|
|
| 8 |
RUN apt-get update && apt-get install -y \
|
| 9 |
-
git \
|
| 10 |
-
|
| 11 |
-
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
|
| 12 |
-
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev git-lfs \
|
| 13 |
-
ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx \
|
| 14 |
-
&& rm -rf /var/lib/apt/lists/* \
|
| 15 |
-
&& git lfs install
|
| 16 |
-
|
| 17 |
-
WORKDIR /code
|
| 18 |
-
|
| 19 |
-
COPY ./requirements.txt /code/requirements.txt
|
| 20 |
-
|
| 21 |
-
# User
|
| 22 |
-
RUN useradd -m -u 1000 user
|
| 23 |
-
USER user
|
| 24 |
-
ENV HOME=/home/user \
|
| 25 |
-
PATH=/home/user/.local/bin:$PATH
|
| 26 |
-
|
| 27 |
-
# Pyenv
|
| 28 |
-
RUN curl https://pyenv.run | bash
|
| 29 |
-
ENV PATH=$HOME/.pyenv/shims:$HOME/.pyenv/bin:$PATH
|
| 30 |
-
|
| 31 |
-
ARG PYTHON_VERSION=3.9.17
|
| 32 |
-
# Python
|
| 33 |
-
RUN pyenv install $PYTHON_VERSION && \
|
| 34 |
-
pyenv global $PYTHON_VERSION && \
|
| 35 |
-
pyenv rehash && \
|
| 36 |
-
pip install --no-cache-dir --upgrade pip setuptools wheel && \
|
| 37 |
-
pip install --no-cache-dir \
|
| 38 |
-
datasets \
|
| 39 |
-
huggingface-hub "protobuf<4" "click<8.1"
|
| 40 |
-
|
| 41 |
-
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 42 |
-
|
| 43 |
-
# Set the working directory to /data if USE_PERSISTENT_DATA is set, otherwise set to $HOME/app
|
| 44 |
-
WORKDIR $HOME/app
|
| 45 |
-
|
| 46 |
-
# Clone the ComfyUI repo
|
| 47 |
-
RUN git clone https://github.com/comfyanonymous/ComfyUI . && \
|
| 48 |
-
pip install --no-cache-dir -r requirements.txt
|
| 49 |
-
|
| 50 |
-
# Checkpoints
|
| 51 |
-
RUN echo "Downloading checkpoints..." && \
|
| 52 |
-
# Kybalico Models
|
| 53 |
-
# wget -c https://huggingface.co/Kybalico/CandyApple/resolve/main/candyApple_v12.safetensors -P ./models/checkpoints/ && \
|
| 54 |
-
wget -cq https://huggingface.co/Kybalico/CalicoMix/resolve/main/calicoMix_v75.safetensors -P ./models/checkpoints/ && \
|
| 55 |
-
# wget -c https://huggingface.co/Kybalico/CalicoMixDC/resolve/main/calicomix_dcV30.safetensors -P ./models/checkpoints/ && \
|
| 56 |
-
# wget -c https://huggingface.co/Kybalico/AnmitsuMimimi/resolve/main/anmitsuMimimi_v10.safetensors -P ./models/checkpoints/ && \
|
| 57 |
-
|
| 58 |
-
# TechnoByte Models
|
| 59 |
-
wget -cq https://huggingface.co/TechnoByte/MilkyWonderland/resolve/main/milkyWonderland_v40.safetensors -P ./models/checkpoints/ && \
|
| 60 |
-
|
| 61 |
-
# LCM
|
| 62 |
-
wget -O ./models/loras/lcm-lora-sdv1-5.safetensors https://huggingface.co/latent-consistency/lcm-lora-sdv1-5/resolve/main/pytorch_lora_weights.safetensors && \
|
| 63 |
-
|
| 64 |
-
# ControlNet
|
| 65 |
-
# wget -c https://huggingface.co/comfyanonymous/ControlNet-v1-1_fp16_safetensors/resolve/main/control_v11p_sd15s2_lineart_anime_fp16.safetensors -P ./models/controlnet/ && \
|
| 66 |
-
|
| 67 |
-
# GLIGEN
|
| 68 |
-
# wget -c https://huggingface.co/comfyanonymous/GLIGEN_pruned_safetensors/resolve/main/gligen_sd14_textbox_pruned_fp16.safetensors -P ./models/gligen/ && \
|
| 69 |
-
|
| 70 |
-
# ComfyUI Manager
|
| 71 |
-
cd custom_nodes && git clone https://github.com/ltdrdata/ComfyUI-Manager.git && \
|
| 72 |
-
|
| 73 |
-
# Install custom nodes
|
| 74 |
-
echo "Installing custom nodes..."
|
| 75 |
-
|
| 76 |
-
# Controlnet Preprocessor nodes by Fannovel16
|
| 77 |
-
# RUN cd custom_nodes && git clone https://github.com/Fannovel16/comfy_controlnet_preprocessors && cd comfy_controlnet_preprocessors && python install.py --no_download_ckpts
|
| 78 |
-
# RUN cd custom_nodes && git clone https://github.com/Fannovel16/comfyui_controlnet_aux && cd comfyui_controlnet_aux && pip install -r requirements.txt
|
| 79 |
-
# RUN cd custom_nodes && git clone https://github.com/Stability-AI/stability-ComfyUI-nodes && cd stability-ComfyUI-nodes && pip install -r requirements.txt
|
| 80 |
-
|
| 81 |
-
RUN cd custom_nodes && git clone https://github.com/EllangoK/ComfyUI-post-processing-nodes --depth 1
|
| 82 |
-
RUN cd custom_nodes && git clone https://github.com/jags111/efficiency-nodes-comfyui --depth 1
|
| 83 |
-
RUN cd custom_nodes && git clone https://github.com/TinyTerra/ComfyUI_tinyterraNodes --depth 1
|
| 84 |
-
RUN cd custom_nodes && git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack --depth 1 && cd ComfyUI-Impact-Pack && python install.py
|
| 85 |
-
RUN cd custom_nodes && git clone https://github.com/crystian/ComfyUI-Crystools --depth 1 && pip install -r ./ComfyUI-Crystools/requirements.txt
|
| 86 |
-
# RUN cd custom_nodes && git clone https://github.com/rgthree/rgthree-comfy --depth 1
|
| 87 |
-
|
| 88 |
-
RUN echo "Done"
|
| 89 |
-
|
| 90 |
-
CMD ["python", "main.py", "--listen", "0.0.0.0", "--cpu", "--port", "7860", "--output-directory", "${USE_PERSISTENT_DATA:+/data/}"]
|
| 91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
|
|
|
|
|
|
|
| 93 |
|
|
|
|
|
|
|
| 94 |
|
|
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
+
# System dependencies
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
+
git wget libgl1 libglib2.0-0 libgl1-mesa-glx ffmpeg \
|
| 6 |
+
&& apt-get clean
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
+
# Install ComfyUI
|
| 9 |
+
WORKDIR /app
|
| 10 |
+
RUN git clone https://github.com/comfyanonymous/ComfyUI.git .
|
| 11 |
+
RUN pip install --upgrade pip
|
| 12 |
+
RUN pip install -r requirements.txt
|
| 13 |
|
| 14 |
+
# Models folder structure
|
| 15 |
+
RUN mkdir -p models/checkpoints models/loras models/controlnet models/upscale_models
|
| 16 |
|
| 17 |
+
# Expose port
|
| 18 |
+
EXPOSE 7860
|
| 19 |
|
| 20 |
+
CMD ["python", "main.py", "--listen", "--port", "7860"]
|
biglust_full_workflow.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{
|
| 4 |
+
"id": "1",
|
| 5 |
+
"type": "CheckpointLoaderSimple",
|
| 6 |
+
"inputs": {
|
| 7 |
+
"ckpt_name": "biglust_v16.safetensors"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"id": "2",
|
| 12 |
+
"type": "LoraLoader",
|
| 13 |
+
"inputs": {
|
| 14 |
+
"lora_name": "sexy_pose_lora.safetensors",
|
| 15 |
+
"strength_model": 0.7,
|
| 16 |
+
"strength_clip": 0.7,
|
| 17 |
+
"model": [
|
| 18 |
+
"1",
|
| 19 |
+
0
|
| 20 |
+
],
|
| 21 |
+
"clip": [
|
| 22 |
+
"1",
|
| 23 |
+
1
|
| 24 |
+
]
|
| 25 |
+
}
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"id": "3",
|
| 29 |
+
"type": "ControlNetLoader",
|
| 30 |
+
"inputs": {
|
| 31 |
+
"control_net_name": "control_v11p_sd15_openpose.pth"
|
| 32 |
+
}
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"id": "4",
|
| 36 |
+
"type": "ImageInput",
|
| 37 |
+
"inputs": {
|
| 38 |
+
"image": "pose_image.png"
|
| 39 |
+
}
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"id": "5",
|
| 43 |
+
"type": "ControlNetApply",
|
| 44 |
+
"inputs": {
|
| 45 |
+
"control_net": [
|
| 46 |
+
"3",
|
| 47 |
+
0
|
| 48 |
+
],
|
| 49 |
+
"image": [
|
| 50 |
+
"4",
|
| 51 |
+
0
|
| 52 |
+
],
|
| 53 |
+
"strength": 1.0
|
| 54 |
+
}
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"id": "6",
|
| 58 |
+
"type": "CLIPTextEncode",
|
| 59 |
+
"inputs": {
|
| 60 |
+
"text": "masterpiece, best quality, curvy woman, open pose, bedroom lighting"
|
| 61 |
+
}
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"id": "7",
|
| 65 |
+
"type": "CLIPTextEncode",
|
| 66 |
+
"inputs": {
|
| 67 |
+
"text": "ugly, blurry, deformed, multiple limbs, bad anatomy"
|
| 68 |
+
}
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"id": "8",
|
| 72 |
+
"type": "EmptyLatentImage",
|
| 73 |
+
"inputs": {
|
| 74 |
+
"width": 768,
|
| 75 |
+
"height": 1024,
|
| 76 |
+
"batch_size": 4
|
| 77 |
+
}
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"id": "9",
|
| 81 |
+
"type": "KSampler",
|
| 82 |
+
"inputs": {
|
| 83 |
+
"model": [
|
| 84 |
+
"2",
|
| 85 |
+
0
|
| 86 |
+
],
|
| 87 |
+
"positive": [
|
| 88 |
+
"6",
|
| 89 |
+
0
|
| 90 |
+
],
|
| 91 |
+
"negative": [
|
| 92 |
+
"7",
|
| 93 |
+
0
|
| 94 |
+
],
|
| 95 |
+
"latent_image": [
|
| 96 |
+
"8",
|
| 97 |
+
0
|
| 98 |
+
],
|
| 99 |
+
"control_net": [
|
| 100 |
+
"5",
|
| 101 |
+
0
|
| 102 |
+
],
|
| 103 |
+
"seed": 123456,
|
| 104 |
+
"steps": 25,
|
| 105 |
+
"cfg": 7,
|
| 106 |
+
"sampler_name": "dpmpp_2m",
|
| 107 |
+
"scheduler": "karras"
|
| 108 |
+
}
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"id": "10",
|
| 112 |
+
"type": "VAEDecode",
|
| 113 |
+
"inputs": {
|
| 114 |
+
"vae": [
|
| 115 |
+
"1",
|
| 116 |
+
2
|
| 117 |
+
],
|
| 118 |
+
"samples": [
|
| 119 |
+
"9",
|
| 120 |
+
0
|
| 121 |
+
]
|
| 122 |
+
}
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"id": "11",
|
| 126 |
+
"type": "ImageUpscaleWithModel",
|
| 127 |
+
"inputs": {
|
| 128 |
+
"upscale_model": "4x-ultrasharp.pth",
|
| 129 |
+
"image": [
|
| 130 |
+
"10",
|
| 131 |
+
0
|
| 132 |
+
],
|
| 133 |
+
"scale": 2
|
| 134 |
+
}
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"id": "12",
|
| 138 |
+
"type": "CodeFormer",
|
| 139 |
+
"inputs": {
|
| 140 |
+
"image": [
|
| 141 |
+
"11",
|
| 142 |
+
0
|
| 143 |
+
],
|
| 144 |
+
"fidelity": 1.0
|
| 145 |
+
}
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"id": "13",
|
| 149 |
+
"type": "SaveImage",
|
| 150 |
+
"inputs": {
|
| 151 |
+
"filename_prefix": "biglust_full",
|
| 152 |
+
"images": [
|
| 153 |
+
"12",
|
| 154 |
+
0
|
| 155 |
+
]
|
| 156 |
+
}
|
| 157 |
+
}
|
| 158 |
+
]
|
| 159 |
+
}
|