Skip to content

Commit bdeac07

Browse files
[pre-commit.ci] pre-commit suggestions (kornia#2943)
* [pre-commit.ci] pre-commit suggestions updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.10 → v0.5.0](astral-sh/ruff-pre-commit@v0.4.10...v0.5.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent af3e28d commit bdeac07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
- id: pyproject-fmt
2121

2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: v0.4.10
23+
rev: v0.5.0
2424
hooks:
2525
- id: ruff
2626
args: [--fix, --exit-non-zero-on-fix]

kornia/geometry/subpix/spatial_soft_argmax.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def conv_quad_interp3d(input: Tensor, strict_maxima_bonus: float = 10.0, eps: fl
562562

563563
# to determine the location we are solving system of linear equations Ax = b, where b is 1st order gradient
564564
# and A is Hessian matrix
565-
b: Tensor = spatial_gradient3d(input, order=1, mode="diff") #
565+
b: Tensor = spatial_gradient3d(input, order=1, mode="diff")
566566
b = b.permute(0, 1, 3, 4, 5, 2).reshape(-1, 3, 1)
567567
A: Tensor = spatial_gradient3d(input, order=2, mode="diff")
568568
A = A.permute(0, 1, 3, 4, 5, 2).reshape(-1, 6)

0 commit comments

Comments
 (0)