From 3707f7f00a3d5400319d0631e735f2433f231e72 Mon Sep 17 00:00:00 2001 From: Josh Holmer Date: Tue, 16 Jan 2024 22:02:02 -0500 Subject: [PATCH] Fix kernel_radius function for SSIM scaler The SSIM class does not have a `ref` property, so it throws a runtime error. The change uses the `scaler` property instead, which exists. --- vsscale/scale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsscale/scale.py b/vsscale/scale.py index efb6fb3..b17c72a 100644 --- a/vsscale/scale.py +++ b/vsscale/scale.py @@ -142,7 +142,7 @@ def _linear_scale( @inject_self.property def kernel_radius(self) -> int: - return self.ref.kernel_radius + return self.scaler.kernel_radius @dataclass