Compare to the v2.0.0 version:
The FreeInit iteration repeatedly calls cfg_denoiser.forward and the callback function animatediff_on_cfg_denoiser(). To prevent the original_forward from being discarded after the first call, I introduced a getattr() check.
Compare to the v2.0.0 version: The FreeInit iteration repeatedly calls
cfg_denoiser.forward
and the callback functionanimatediff_on_cfg_denoiser()
. To prevent theoriginal_forward
from being discarded after the first call, I introduced agetattr()
check.