Skip to content

Commit

Permalink
chore: remove repetitive words (#2902)
Browse files Browse the repository at this point in the history
* chore: remove repetitive words

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
peicuiping and pre-commit-ci[bot] committed May 9, 2024
1 parent e34ed3c commit a041d92
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/source/models/segment_anything.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions kornia/feature/laf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)`
Expand Down
2 changes: 1 addition & 1 deletion kornia/geometry/calibration/distort.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)`.
Expand Down
4 changes: 2 additions & 2 deletions kornia/geometry/ransac.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ def validate_inputs(self, kp1: Tensor, kp2: Tensor, weights: Optional[Tensor] =
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":
KORNIA_CHECK_SHAPE(kp1, ["N", "2", "2"])
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}"
)
Expand Down

0 comments on commit a041d92

Please sign in to comment.