diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 97c6d7c449..ee607b9e5e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.10 + rev: v0.5.0 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/kornia/geometry/subpix/spatial_soft_argmax.py b/kornia/geometry/subpix/spatial_soft_argmax.py index 2a459e4978..de0545cd9a 100644 --- a/kornia/geometry/subpix/spatial_soft_argmax.py +++ b/kornia/geometry/subpix/spatial_soft_argmax.py @@ -562,7 +562,7 @@ def conv_quad_interp3d(input: Tensor, strict_maxima_bonus: float = 10.0, eps: fl # to determine the location we are solving system of linear equations Ax = b, where b is 1st order gradient # and A is Hessian matrix - b: Tensor = spatial_gradient3d(input, order=1, mode="diff") # + b: Tensor = spatial_gradient3d(input, order=1, mode="diff") b = b.permute(0, 1, 3, 4, 5, 2).reshape(-1, 3, 1) A: Tensor = spatial_gradient3d(input, order=2, mode="diff") A = A.permute(0, 1, 3, 4, 5, 2).reshape(-1, 6)