Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

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

pre-commit-ci[bot]df5bf03e8ca9
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0bb506954..b5490d0f6 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -17,7 +17,7 @@ repos:
exclude: ^$|.devcontainer
- repo: https://github.com/asottile/setup-cfg-fmt
- rev: v2.0.0
+ rev: v2.1.0
hooks:
- id: setup-cfg-fmt
@@ -28,7 +28,7 @@ repos:
- id: black
- repo: https://github.com/codespell-project/codespell
- rev: v2.2.1
+ rev: v2.2.2
hooks:
- id: codespell
args:
@@ -48,7 +48,7 @@ repos:
- id: flake8
- repo: https://github.com/asottile/pyupgrade
- rev: v3.0.0
+ rev: v3.1.0
hooks:
- id: pyupgrade
args: [--py36-plus]
diff --git a/kornia/nerf/nerf_model.py b/kornia/nerf/nerf_model.py
index 16c5fab40..f21b6ebcd 100755
--- a/kornia/nerf/nerf_model.py
+++ b/kornia/nerf/nerf_model.py
@@ -118,7 +118,7 @@ class NerfModel(nn.Module):
y = self._fc2(y)
rgbs_ray_points = self._rgb(y)
- # Rendring rgbs and densities along rays
+ # Rendering rgbs and densities along rays
rgbs = self._renderer(rgbs_ray_points, densities_ray_points, points_3d)
# Return pixel point rendered rgb
diff --git a/kornia/nerf/rays.py b/kornia/nerf/rays.py
index 1bbe5ba2e..8c46068f3 100755
--- a/kornia/nerf/rays.py
+++ b/kornia/nerf/rays.py
@@ -297,8 +297,10 @@ class RandomRaySampler(RaySampler):
class RandomGridRaySampler(RandomRaySampler):
- r"""Class to manage random ray spatial sampling. Sampling is done on a regular grid of pixels by randomizing
- column and row values, and casting rays for all pixels along the seleceted ones.
+ r"""Class to manage random ray spatial sampling.
+
+ Sampling is done on a regular grid of pixels by randomizing
+ column and row values, and casting rays for all pixels along the selected ones.
Args:
min_depth: sampled rays minimal depth from cameras: float