From 2f03eefb936cd3d2a246c843a9da171d92be72e7 Mon Sep 17 00:00:00 2001 From: Fred Bliss Date: Sun, 16 Mar 2025 10:38:23 -0500 Subject: [PATCH] update --- README.md | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/README.md b/README.md index eba1f01..616c08f 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,61 @@ ComfyUI-WanSeamlessFlow/ └─────────────────────┘ └───────────────────────┘ └─────────────────────┘ ``` +## integration with [Kijai's ComfyUI-WanVideoWrapper](https://github.com/kijai/ComfyUI-WanVideoWrapper) + +``` +┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐ +│ LoadWanVideo │ │ WanVideoText │ │ WanSmartBlend │ │ WanVideoSampler │ +│ T5TextEncoder │───▶│ Encode │───▶│ │───▶│ │ +└──────────────────┘ └──────────────────┘ └──────────────────┘ └──────────────────┘ + │ + ▼ + ┌──────────────────┐ + │ WanBlendVisualize│ + │ (Optional) │ + └──────────────────┘ +``` + +### usage + +**Multi-Prompt Usage**: +For optimal results with prompt transitions: + +Modify your WanVideoTextEncode to use multiple prompts separated by | characters: + +`high quality nature video featuring a red panda balancing on a bamboo stem | high quality nature video focusing on the bird perched on the panda's head | high quality nature video showcasing the waterfall in the background` + +- Adjust the blend_width parameter based on your number of frames: +- With 257 frames and 3 prompts → 85.6 frames per prompt +- Recommended blend_width: 8-16 frames +- Higher values create wider transition zones + +**Compatibility Notes**: +This setup is fully compatible with your existing components: + +- TeaCache: Works alongside WanSmartBlend, both optimizing different parts +- Context Windowing: Seamless transitions work at context window boundaries +- Torch Compilation: No interference, remains performance-enhancing + +**Parameter Recommendations**: + +- for your particular setup with 257 frames: +- blend_width: 8 # Start conservative, increase for smoother transitions +- blend_method: "smooth" # Provides natural transitions without obvious linear interpolation +- optimize_order: true # Automatically orders prompts for minimal semantic distance +- verbosity: 1 # Basic logging without overwhelming console output + +**Extended Analysis**: +This integration creates a multi-dimensional benefits matrix: + +``` +⎡ TeaCache Compatibility ⎤ ⎡ High | Compatible with caching mechanisms ⎤ +⎢ Context Window Flow ⎥ = ⎢ High | Works with all scheduler types ⎥ +⎢ Smooth Transitions ⎥ ⎢ High | Creates gradual prompt blending ⎥ +⎢ Performance Impact ⎥ ⎢ Low | Minimal computational overhead ⎥ +⎣ Implementation Effort ⎦ ⎣ Low | Non-invasive integration ⎦ +``` + ## logical flow **Integration point: context window embedding selection logic**