π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
[pre-commit.ci] pre-commit suggestions (#2683)
pre-commit-ci[bot]03a06890080b
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 45fd9e5c7..c7a59654f 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.1.6+ rev: v0.1.7hooks:- id: ruffargs: [--fix, --exit-non-zero-on-fix]diff --git a/kornia/feature/loftr/utils/fine_matching.py b/kornia/feature/loftr/utils/fine_matching.pyindex c134ae8ef..a6638e669 100644--- a/kornia/feature/loftr/utils/fine_matching.py+++ b/kornia/feature/loftr/utils/fine_matching.py@@ -47,7 +47,7 @@ class FineMatching(Module):)return- feat_f0_picked = feat_f0_picked = feat_f0[:, WW // 2, :]+ feat_f0_picked = feat_f0[:, WW // 2, :]sim_matrix = torch.einsum("mc,mrc->mr", feat_f0_picked, feat_f1)softmax_temp = 1.0 / C**0.5heatmap = torch.softmax(softmax_temp * sim_matrix, dim=1).view(-1, W, W)diff --git a/kornia/nerf/samplers.py b/kornia/nerf/samplers.pyindex b27c459fa..720b2942f 100755--- a/kornia/nerf/samplers.py+++ b/kornia/nerf/samplers.py@@ -213,7 +213,7 @@ class RaySampler:@staticmethoddef _build_num_ray_dict_of_points2d(- points2d_as_flat_tensors: Dict[int, Points2D_FlatTensors]+ points2d_as_flat_tensors: Dict[int, Points2D_FlatTensors],) -> Dict[int, Points2D]:r"""Builds a dictionary of ray pixel points, by total number of rays as key. The dictionary groups rays bythe total amount of rays, which allows the case of casting different number of rays from each scene camera.