π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
[pre-commit.ci] pre-commit suggestions (#2943)
pre-commit-ci[bot]bdeac07e1edc
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 97c6d7c44..ee607b9e5 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.0hooks:- id: ruffargs: [--fix, --exit-non-zero-on-fix]diff --git a/kornia/geometry/subpix/spatial_soft_argmax.py b/kornia/geometry/subpix/spatial_soft_argmax.pyindex 2a459e497..de0545cd9 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)