ComfyUI Extension: ComfyUI-TaylorSeer
This project is the ComfyUI implementation of the TaylorSeer project a/https://github.com/Shenyi-Z/TaylorSeer.
Custom Nodes (0)
README
ComfyUI-TaylorSeer
This project is the ComfyUI implementation of the TaylorSeer project https://github.com/Shenyi-Z/TaylorSeer.
Important Note
Please ensure your ComfyUI version is newer than commit c496e53
.
Project Updates
- WIP: WAN 2.1 support is on the way
- update:
2025/05/13
: Support Hidream, force VRAM purge when checkpoint is changed - update:
2025/04/30
: First release, supporting FLUX.
Quick Start
Installation
- Navigate to
ComfyUI/custom_nodes
- Clone this repository
- Run ComfyUI after installation is complete!
Running the Workflow
Reference Workflow for Hidream
Usage Instructions
Memory Requirements Flux: The cache needs to be stored in GPU memory for efficient computation. For a 1024*1024 image using FLUX FP8 precision model:
- Order 0: Increases VRAM usage by 2GB
- Order 1: Increases VRAM usage by 4GB
- Order 2: Increases VRAM usage by 6GB
VRAM usage increases linearly with resolution and number of images.
Memory Requirements Hidream: The cache needs to be stored in GPU memory for efficient computation. For a 1024*1024 image using Hidream-full FP8 precision model:
- Order 0: Increases VRAM usage by 5GB
- Order 1: Increases VRAM usage by 10GB
- Order 2: Increases VRAM usage by 15GB
VRAM usage increases linearly with resolution and number of images.
Acceleration Ratio: The first_enhance
parameter can adjust when Taylor Cache intervenes. When first_enhance = 10, with 30 iteration steps, the results are almost lossless compared to the original results, and the acceleration ratio can reach 2x.
Comparison with teacache
Compared to TeaCache, TaylorSeer maintains a higher acceleration ratio and preserves more consistent composition and elements relative to the original image.
| Prompt | Original<br>(steps = 50, 2.42it/s) | TaylorSeer<br>(steps = 50, order = 1, first_enhance = 10, 5.73it/s) | TeaCache<br>(steps = 50, rel_l1_thresh = 0.25, 4.08it/s) | TeaCache<br>(steps = 50, rel_l1_thresh = 0.40, 5.32it/s) | |--------|----------|------------|-----------|-----------| | fashion photo of a model wearing black draped plastic fabric designed by Demna Gvasalia, standing in an apocalyptic room, sunglasses, synthetic light, 4K, photoreal, 3D render, | <img src="./sample_images/12_original.png" width="200px"> | <img src="./sample_images/12_TaylorSeer.png" width="200px"> | <img src="./sample_images/12_teacache_25.png" width="200px"> | <img src="./sample_images/12_teacache_40.png" width="200px"> | | This picture depicts an anime scene that revolves around a young girl. She is characterized by purple hair tied into two ponytails, each decorated with a bow and pink earmuffs. The girl is wearing dark clothes, a vest-style top and shorts. She has a happy expression, a big smile on her face, and a pearl or something delicate in her mouth, as if she is jokingly feeding herself. | <img src="./sample_images/122_original.png" width="200px"> | <img src="./sample_images/122_TaylorSeer.png" width="200px"> | <img src="./sample_images/122_teacache_25.png" width="200px"> | <img src="./sample_images/122_teacache_40.png" width="200px"> |
License
The code in this repository is released under the GNU General Public License v3.0.