Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

chore: remove repetitive words (#2902)

peicuipinga041d9255f45
diff --git a/docs/source/models/segment_anything.rst b/docs/source/models/segment_anything.rst
index 698a333ff..c2a2e6784 100644
--- a/docs/source/models/segment_anything.rst
+++ b/docs/source/models/segment_anything.rst
@@ -173,7 +173,7 @@ Read more about the :code:`SegmentationResults` on :ref:`the official docs<ancho
Load from config
^^^^^^^^^^^^^^^^
-You can build a SAM model by specifying the encoder parameters on the the :code:`SamConfig`, or from the model type. The
+You can build a SAM model by specifying the encoder parameters on the :code:`SamConfig`, or from the model type. The
:code:`from_config` method will first try to build the model based on the model type, otherwise will try from the specified
parameters. If a checkpoint URL or path for a file is seted, the method will automatically load it.
diff --git a/kornia/feature/laf.py b/kornia/feature/laf.py
index ef9d345d9..af5bc053d 100644
--- a/kornia/feature/laf.py
+++ b/kornia/feature/laf.py
@@ -68,8 +68,8 @@ def get_laf_orientation(LAF: Tensor) -> Tensor:
def rotate_laf(LAF: Tensor, angles_degrees: Tensor) -> Tensor:
- """Apply additional rotation to the the LAFs. Compared to `set_laf_orientation`, the resulting rotation is
- original LAF orientation plus angles_degrees.
+ """Apply additional rotation to the LAFs. Compared to `set_laf_orientation`, the resulting rotation is original
+ LAF orientation plus angles_degrees.
Args:
LAF: :math:`(B, N, 2, 3)`
diff --git a/kornia/geometry/calibration/distort.py b/kornia/geometry/calibration/distort.py
index 142936c0b..f2a0fda11 100644
--- a/kornia/geometry/calibration/distort.py
+++ b/kornia/geometry/calibration/distort.py
@@ -12,7 +12,7 @@ def tilt_projection(taux: torch.Tensor, tauy: torch.Tensor, return_inverse: bool
Args:
taux: Rotation angle in radians around the :math:`x`-axis with shape :math:`(*, 1)`.
tauy: Rotation angle in radians around the :math:`y`-axis with shape :math:`(*, 1)`.
- return_inverse: False to obtain the the tilt projection matrix. True for the inverse matrix.
+ return_inverse: False to obtain the tilt projection matrix. True for the inverse matrix.
Returns:
torch.Tensor: Inverse tilt projection matrix with shape :math:`(*, 3, 3)`.
diff --git a/kornia/geometry/ransac.py b/kornia/geometry/ransac.py
index 5d5ac6149..64e101bb7 100644
--- a/kornia/geometry/ransac.py
+++ b/kornia/geometry/ransac.py
@@ -160,7 +160,7 @@ class RANSAC(Module):
KORNIA_CHECK_SHAPE(kp2, ["N", "2"])
if not (kp1.shape[0] == kp2.shape[0]) or (kp1.shape[0] < self.minimal_sample_size):
raise ValueError(
- "kp1 and kp2 should be equal shape at at least"
+ "kp1 and kp2 should be equal shape at least"
f" [{self.minimal_sample_size}, 2], got {kp1.shape}, {kp2.shape}"
)
if self.model_type == "homography_from_linesegments":
@@ -168,7 +168,7 @@ class RANSAC(Module):
KORNIA_CHECK_SHAPE(kp2, ["N", "2", "2"])
if not (kp1.shape[0] == kp2.shape[0]) or (kp1.shape[0] < self.minimal_sample_size):
raise ValueError(
- "kp1 and kp2 should be equal shape at at least"
+ "kp1 and kp2 should be equal shape at least"
f" [{self.minimal_sample_size}, 2, 2], got {kp1.shape},"
f" {kp2.shape}"
)