From 63fcb01a9f3414aa7645f9cb25a0976229a062cd Mon Sep 17 00:00:00 2001 From: TNTwise Date: Fri, 13 Sep 2024 23:46:45 -0500 Subject: [PATCH] fix encode caching bug --- backend/src/InterpolateTorch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/InterpolateTorch.py b/backend/src/InterpolateTorch.py index 99391046..21ddc101 100644 --- a/backend/src/InterpolateTorch.py +++ b/backend/src/InterpolateTorch.py @@ -355,7 +355,7 @@ def process(self, img0, img1, timestep): timestep = self.timestepDict[timestep] if not self.rife46: if self.f1encode is None: - self.f1encode = self.encode(img0[:, :3]) + self.f1encode = self.encode(img1[:, :3]) output, self.f1encode = self.flownet( img0, img1, timestep, self.f1encode )