Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions configs/models-ipadapter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ models:
PixelArtRedmond15V-PixelArt-PIXARFK.safetensors:
name: "PixelArtRedmond15V-PixelArt-PIXARFK"
url: "https://huggingface.co/artificialguybr/pixelartredmond-1-5v-pixel-art-loras-for-sd-1-5/resolve/ab43d9e2cf8c9240189f01e9cdc4ca341362500c/PixelArtRedmond15V-PixelArt-PIXARFK.safetensors"
path: "loras/SD1.5/PixelArtRedmond15V-PixelArt-PIXARFK.safetensors"
path: "loras/SD1.5/PixelArt.safetensors"
type: "lora"

# TAESD for fast VAE
Expand All @@ -42,4 +42,3 @@ models:
extra_files:
- url: "https://huggingface.co/madebyollin/taesd/resolve/main/taesd_encoder.safetensors"
path: "vae_approx/taesd_encoder.safetensors"

3 changes: 1 addition & 2 deletions configs/nodes-streamdiffusion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ nodes:

comfyui-streamdiffusion:
name: "ComfyUI StreamDiffusion"
url: "https://github.com/RUFFY-369/ComfyUI-StreamDiffusion"
url: "https://github.com/muxionlabs/ComfyUI-StreamDiffusion"
branch: "main"
type: "tensorrt"

Expand All @@ -34,4 +34,3 @@ nodes:
name: "rgthree Comfy"
url: "https://github.com/rgthree/rgthree-comfy.git"
type: "utility"

28 changes: 11 additions & 17 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,23 +138,17 @@ if [ "$1" = "--build-engines" ]; then
echo "Engines for FasterLivePortrait already exists, skipping..."
fi

# Build Engine for StreamDiffusion
if [ ! -f "$TENSORRT_DIR/StreamDiffusion-engines/stabilityai/sd-turbo--lcm_lora-True--tiny_vae-True--max_batch-3--min_batch-3--mode-img2img/unet.engine.opt.onnx" ]; then
cd /workspace/ComfyUI/custom_nodes/ComfyUI-StreamDiffusion
MODELS="stabilityai/sd-turbo KBlueLeaf/kohaku-v2.1"
TIMESTEPS="3"
for model in $MODELS; do
for timestep in $TIMESTEPS; do
echo "Building model=$model with timestep=$timestep"
python build_tensorrt.py \
--model-id "$model" \
--timesteps "$timestep" \
--engine-dir $TENSORRT_DIR/StreamDiffusion-engines
done
done
else
echo "Engine for StreamDiffusion already exists, skipping..."
fi
# Build Engine for StreamDiffusion using trt script and config
ENGINE_SCRIPT="/workspace/ComfyUI/custom_nodes/ComfyUI-StreamDiffusion/scripts/build_tensorrt_engines.py"
CONFIGS=(
"/workspace/ComfyUI/custom_nodes/ComfyUI-StreamDiffusion/configs/sd15_singlecontrol.yaml"
"/workspace/ComfyUI/custom_nodes/ComfyUI-StreamDiffusion/configs/sdturbo_multicontrol.yaml"
)
cd /workspace/ComfyUI/custom_nodes/ComfyUI-StreamDiffusion/scripts
for ENGINE_CONFIG in "${CONFIGS[@]}"; do
echo "Building StreamDiffusion TensorRT engines using config: $ENGINE_CONFIG"
python "$ENGINE_SCRIPT" --config "$ENGINE_CONFIG"
done
shift
fi

Expand Down