mirror of
https://git.datalinker.icu/ali-vilab/TeaCache
synced 2025-12-08 20:34:24 +08:00
Update teacache_lumina2.py
This commit is contained in:
parent
e945259c7d
commit
4588c2d970
@ -68,7 +68,7 @@ def teacache_forward_working(
|
|||||||
current_cache["accumulated_rel_l1_distance"] = 0.0
|
current_cache["accumulated_rel_l1_distance"] = 0.0
|
||||||
else:
|
else:
|
||||||
if current_cache["previous_modulated_input"] is not None:
|
if current_cache["previous_modulated_input"] is not None:
|
||||||
coefficients = [393.76566581, -603.50993606, 209.10239044, -23.00726601, 0.86377344] # taken from teacache_lumina_next.py
|
coefficients = [225.7042019806413, -608.8453716535591, 304.1869942338369, 124.21267720116742, -1.4089066892956552]
|
||||||
rescale_func = np.poly1d(coefficients)
|
rescale_func = np.poly1d(coefficients)
|
||||||
prev_mod_input = current_cache["previous_modulated_input"]
|
prev_mod_input = current_cache["previous_modulated_input"]
|
||||||
prev_mean = prev_mod_input.abs().mean()
|
prev_mean = prev_mod_input.abs().mean()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user