Skip to content

Commit

Permalink
Fix kernel_radius function for SSIM scaler
Browse files Browse the repository at this point in the history
The SSIM class does not have a `ref` property, so it throws
a runtime error. The change uses the `scaler` property instead,
which exists.
  • Loading branch information
shssoichiro committed Jan 17, 2024
1 parent 2f4a880 commit 3707f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vsscale/scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3707f7f

Please sign in to comment.