-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.7.1 - Auto-restart, non-fatal file conversion errors (#16)
* version bump, support frames for batchSize * handle case of local image paths * fix installation of sharp * animatediff works * zod hates to base64 validate huge stuff. fair enough * start outlining tests * ignore model files * scaffolding tests * controlnet frames * ignore model directory * rip out filewatcher, just use comfy apis * first passing test * fixes based on testing * sync tests passing * remove dependency on recipes repo * create test utils, do webhook tests * sd1.5 tests * ltx video tests * fix webhook test issue * flux tests * sd3.5 tests * sdxl tests * workaround testing race condition * document required models * remove unused * hunyuan video * add hunyuan to supported models * more testing instructions * make body size configurable, little cleanup in server * remove commented out code in workflow loader * shorten that test * document location of all models used for testing * cogvideo works * cogvideox 2b works * configurable restart policy * document config change * no longer treat image conversion as a fatal error, just send the unconverted output * fix * mochi support * remove .only * build scripts for docker images for ghcr * move more env into base * specify mochi video in readme * document cogvideox and mochi model sources * version bump * comments * await workflow generation. allows for async prompt generations * label the event in the webhook * readme note about timeouts * update workflows * nah, didn't like that * more readme update
- Loading branch information
1 parent
37882e8
commit 82b70fa
Showing
19 changed files
with
581 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
ARG base=runtime | ||
ARG comfy_version=0.3.10 | ||
ARG pytorch_version=2.5.0 | ||
ARG cuda_version=12.1 | ||
FROM ghcr.io/saladtechnologies/comfyui-api:comfy${comfy_version}-torch${pytorch_version}-cuda${cuda_version}-${base} | ||
|
||
ENV WORKFLOW_DIR=/workflows | ||
ENV STARTUP_CHECK_MAX_TRIES=30 | ||
|
||
ARG api_version=1.7.1 | ||
ADD https://github.com/SaladTechnologies/comfyui-api/releases/download/${api_version}/comfyui-api . | ||
RUN chmod +x comfyui-api | ||
|
||
CMD ["./comfyui-api"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#! /usr/bin/bash | ||
|
||
usage="Usage: $0 [comfy_version] [torch_version] [cuda_version] [api_version]" | ||
|
||
comfy_version=${1:-0.3.10} | ||
torch_version=${2:-2.5.0} | ||
cuda_version=${3:-12.1} | ||
|
||
current_api_version=$(cat ../package.json | jq -r '.version') | ||
api_version=${4:-$current_api_version} | ||
|
||
bases=("runtime" "devel") | ||
|
||
for base in "${bases[@]}"; do | ||
docker build -t ghcr.io/saladtechnologies/comfyui-api:comfy$comfy_version-api$api_version-torch$torch_version-cuda$cuda_version-$base \ | ||
-f api.dockerfile \ | ||
--build-arg comfy_version=$comfy_version \ | ||
--build-arg base=$base \ | ||
--build-arg pytorch_version=$torch_version \ | ||
--build-arg cuda_version=$cuda_version \ | ||
--build-arg api_version=$api_version \ | ||
. | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#! /usr/bin/bash | ||
|
||
comfy_version=${1:-0.3.10} | ||
torch_version=${2:-2.5.0} | ||
cuda_version=${3:-12.1} | ||
bases=("runtime" "devel") | ||
|
||
for base in "${bases[@]}"; do | ||
docker build -t ghcr.io/saladtechnologies/comfyui-api:comfy$comfy_version-torch$torch_version-cuda$cuda_version-$base \ | ||
-f comfyui.dockerfile \ | ||
--build-arg comfy_version=$comfy_version \ | ||
--build-arg base=$base \ | ||
--build-arg pytorch_version=$torch_version \ | ||
--build-arg cuda_version=$cuda_version \ | ||
. | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
ARG base=runtime | ||
ARG pytorch_version=2.5.0 | ||
ARG cuda_version=12.1 | ||
FROM pytorch/pytorch:${pytorch_version}-cuda${cuda_version}-cudnn9-${base} | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
git \ | ||
unzip \ | ||
wget \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install comfy-cli, which makes it easy to install custom nodes and other comfy specific functionality. | ||
RUN pip install --upgrade pip | ||
RUN pip install comfy-cli | ||
WORKDIR /opt | ||
ARG comfy_version=0.3.10 | ||
RUN git clone --depth 1 --branch v${comfy_version} https://github.com/comfyanonymous/ComfyUI.git | ||
WORKDIR /opt/ComfyUI | ||
RUN pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121 | ||
RUN pip install -r requirements.txt | ||
ENV COMFY_HOME=/opt/ComfyUI | ||
RUN comfy --skip-prompt tracking disable | ||
RUN comfy --skip-prompt set-default ${COMFY_HOME} | ||
ENV MODEL_DIR=${COMFY_HOME}/models | ||
ENV OUTPUT_DIR=${COMFY_HOME}/output | ||
ENV INPUT_DIR=${COMFY_HOME}/input | ||
ENV CMD="comfy --workspace ${COMFY_HOME} launch -- --listen *" | ||
ENV BASE="" | ||
|
||
CMD ["comfy", "--workspace", "${COMFY_HOME}", "launch", "--", "--listen", "*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#! /usr/bin/bash | ||
|
||
usage="Usage: $0 [comfy_version] [torch_version] [cuda_version] [api_version]" | ||
|
||
comfy_version=${1:-0.3.10} | ||
torch_version=${2:-2.5.0} | ||
cuda_version=${3:-12.1} | ||
|
||
current_api_version=$(cat package.json | jq -r '.version') | ||
api_version=${4:-$current_api_version} | ||
|
||
bases=("runtime" "devel") | ||
|
||
for base in "${bases[@]}"; do | ||
docker push ghcr.io/saladtechnologies/comfyui-api:comfy$comfy_version-torch$torch_version-cuda$cuda_version-$base | ||
docker push ghcr.io/saladtechnologies/comfyui-api:comfy$comfy_version-api$api_version-torch$torch_version-cuda$cuda_version-$base | ||
done |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.