// switch to your project's root directory
cd custom_nodes
git clone https://github.com/spawner1145/CUI-Lumina2-TeaCache.git
Manager -> Install Custom NodeCUI-Lumina2-TeaCache in the Search field, and click SearchInstallTeaCache node between the UNet Loader and KSampler in your workflow.rel_l1_thresh parameter to a value greater than 0.[393.76566581, -603.50993606, 209.10239044, -23.00726601, 0.86377344] and a small rel_l1_thresh like 0.3 for higher speed or set the value below to [225.7042019806413, -608.8453716535591, 304.1869942338369, 124.21267720116742, -1.4089066892956552] and a very large rel_l1_thresh like 5 for higher speed and better quality, and for higher steps, you can set the value below to [225.7042019806413, -608.8453716535591, 304.1869942338369, 124.21267720116742, -1.4089066892956552] and a rel_l1_thresh<1.1 to get better quality and higher speed.[225.7042019806413, -608.8453716535591, 304.1869942338369, 124.21267720116742, -1.4089066892956552])Note:
rel_l1_thresh values will improve generation efficiency (manifested as shorter generation times), at the cost of reduced image quality.TeaCache can speedup Lumina-Image-2.0 without much visual quality degradation, in a training-free manner. The following image shows the results generated by TeaCache-Lumina-Image-2.0 with various rel_l1_thresh values: 0 (original), 0.2 (1.25x speedup), 0.3 (1.5625x speedup), 0.4 (2.0833x speedup), 0.5 (2.5x speedup).
| Lumina-Image-2.0 | TeaCache (0.2) | TeaCache (0.3) | TeaCache (0.4) | TeaCache (0.5) |
|---|---|---|---|---|
| ~25 s | ~20 s | ~16 s | ~12 s | ~10 s |
The original TeaCache transplant of Lumina2 in cui
model patch code design
// switch to your project's root directory
cd custom_nodes
git clone https://github.com/spawner1145/CUI-Lumina2-TeaCache.git
Manager -> Install Custom NodeCUI-Lumina2-TeaCache in the Search field, and click SearchInstallTeaCache node between the UNet Loader and KSampler in your workflow.rel_l1_thresh parameter to a value greater than 0.[393.76566581, -603.50993606, 209.10239044, -23.00726601, 0.86377344] and a small rel_l1_thresh like 0.3 for higher speed or set the value below to [225.7042019806413, -608.8453716535591, 304.1869942338369, 124.21267720116742, -1.4089066892956552] and a very large rel_l1_thresh like 5 for higher speed and better quality, and for higher steps, you can set the value below to [225.7042019806413, -608.8453716535591, 304.1869942338369, 124.21267720116742, -1.4089066892956552] and a rel_l1_thresh<1.1 to get better quality and higher speed.[225.7042019806413, -608.8453716535591, 304.1869942338369, 124.21267720116742, -1.4089066892956552])Note:
rel_l1_thresh values will improve generation efficiency (manifested as shorter generation times), at the cost of reduced image quality.TeaCache can speedup Lumina-Image-2.0 without much visual quality degradation, in a training-free manner. The following image shows the results generated by TeaCache-Lumina-Image-2.0 with various rel_l1_thresh values: 0 (original), 0.2 (1.25x speedup), 0.3 (1.5625x speedup), 0.4 (2.0833x speedup), 0.5 (2.5x speedup).
| Lumina-Image-2.0 | TeaCache (0.2) | TeaCache (0.3) | TeaCache (0.4) | TeaCache (0.5) |
|---|---|---|---|---|
| ~25 s | ~20 s | ~16 s | ~12 s | ~10 s |
The original TeaCache transplant of Lumina2 in cui
model patch code design