From 4af3b9a6a727dfb7a1d13ae081854f369ffab9ad Mon Sep 17 00:00:00 2001 From: Jedrzej Kosinski Date: Wed, 20 Sep 2023 04:46:33 -0500 Subject: [PATCH] Fixed forgetting to rename variable to interpolation --- nodes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nodes.py b/nodes.py index 8073e30..4090fa2 100644 --- a/nodes.py +++ b/nodes.py @@ -353,7 +353,7 @@ class LatentKeyframeTimingNode: strength_from: float, batch_index_to: int, strength_to: float, - timming: str, + interpolation: str, flip_weights: bool, prev_latent_keyframe: LatentKeyframeGroup=None): @@ -371,15 +371,15 @@ class LatentKeyframeTimingNode: steps = batch_index_to - batch_index_from + 1 diff = strength_to - strength_from - if timming == "linear": + if interpolation == "linear": weights = np.linspace(strength_from, strength_to, steps) - elif timming == "ease-in": + elif interpolation == "ease-in": index = np.linspace(0, 1, steps) weights = diff * np.power(index, 2) + strength_from - elif timming == "ease-out": + elif interpolation == "ease-out": index = np.linspace(0, 1, steps) weights = diff * (1 - np.power(1 - index, 2)) + strength_from - elif timming == "ease-in-out": + elif interpolation == "ease-in-out": index = np.linspace(0, 1, steps) weights = diff * ((1 - np.cos(index * np.pi)) / 2) + strength_from