Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

[pre-commit.ci] pre-commit suggestions (#2345)

pre-commit-ci[bot]8a4de12d178d
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b800f088a..656e70fc7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -15,7 +15,7 @@ repos:
exclude: ^$|.devcontainer
- repo: https://github.com/tox-dev/pyproject-fmt
- rev: "0.9.2"
+ rev: "0.10.0"
hooks:
- id: pyproject-fmt
@@ -41,7 +41,7 @@ repos:
- "*.bib,*.ipynb"
- repo: https://github.com/PyCQA/docformatter
- rev: v1.6.1-rc1
+ rev: v1.6.3
hooks:
- id: docformatter
args: [--in-place, --wrap-summaries=115, --wrap-descriptions=120]
diff --git a/kornia/feature/laf.py b/kornia/feature/laf.py
index 0ab37d733..5c79f1de3 100644
--- a/kornia/feature/laf.py
+++ b/kornia/feature/laf.py
@@ -314,6 +314,7 @@ def denormalize_laf(LAF: Tensor, images: Tensor) -> Tensor:
def normalize_laf(LAF: Tensor, images: Tensor) -> Tensor:
"""Normalize LAFs to [0,1] scale from pixel scale. See below:
+
B,N,H,W = images.size()
MIN_SIZE = min(H - 1, W -1)
[a11 a21 x]
@@ -328,7 +329,6 @@ def normalize_laf(LAF: Tensor, images: Tensor) -> Tensor:
Returns:
the denormalized LAF: :math:`(B, N, 2, 3)`, scale in image percentage (0, 1)
-
"""
KORNIA_CHECK_LAF(LAF)
_, _, h, w = images.size()