From bcda7ccea8481c37c9db247a5b76c7ff6ba760a3 Mon Sep 17 00:00:00 2001 From: xmarre Date: Wed, 8 Apr 2026 00:18:56 +0200 Subject: [PATCH] Remove obsolete ignore and license files --- nodes_temporal.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodes_temporal.py b/nodes_temporal.py index 5148dc4..7dc8db5 100644 --- a/nodes_temporal.py +++ b/nodes_temporal.py @@ -14,7 +14,7 @@ from .core_sampling import ( try: import cv2 # type: ignore -except Exception: # pragma: no cover +except ImportError: # pragma: no cover cv2 = None @@ -167,8 +167,8 @@ def _ensure_same_image_shape(current: torch.Tensor, previous: torch.Tensor, cont def _frame_difference_score(previous_frame: torch.Tensor, current_frame: torch.Tensor) -> float: - previous = _ensure_same_image_shape(current_frame, previous_frame, "previous input") - return float(torch.mean(torch.abs(current_frame - previous)).item()) + aligned_previous = _ensure_same_image_shape(current_frame, previous_frame, "previous input") + return float(torch.mean(torch.abs(current_frame - aligned_previous)).item()) def _compute_reset(