Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

docs: Fix a few typos (#1774)

Tim Gates442b3b0a84bc
diff --git a/docs/generate_example_images.py b/docs/generate_example_images.py
index 88d9e44a2..f9f46b746 100644
--- a/docs/generate_example_images.py
+++ b/docs/generate_example_images.py
@@ -92,7 +92,7 @@ def main():
aug = cls(*args, p=1.0)
# set seed
torch.manual_seed(seed)
- # apply the augmentaiton to the image and concat
+ # apply the augmentation to the image and concat
out = aug(img_in)
if aug_name == "CenterCrop":
@@ -121,7 +121,7 @@ def main():
aug = cls(*args, p=1.0)
# set seed
torch.manual_seed(seed)
- # apply the augmentaiton to the image and concat
+ # apply the augmentation to the image and concat
out, _ = aug(img_in, torch.tensor([0, 1]))
out = torch.cat([img_in[0], img_in[1], *(out[i] for i in range(out.size(0)))], dim=-1)
# save the output image
diff --git a/kornia/metrics/mean_iou.py b/kornia/metrics/mean_iou.py
index 2aebf9938..5e47ccc0e 100644
--- a/kornia/metrics/mean_iou.py
+++ b/kornia/metrics/mean_iou.py
@@ -61,7 +61,7 @@ def mean_iou(input: torch.Tensor, target: torch.Tensor, num_classes: int, eps: f
def mean_iou_bbox(boxes_1: torch.Tensor, boxes_2: torch.Tensor) -> torch.Tensor:
- """Compute the IoU of the cartisian product of two sets of boxes.
+ """Compute the IoU of the cartesian product of two sets of boxes.
Each box in each set shall be (x1, y1, x2, y2).
diff --git a/kornia/utils/draw.py b/kornia/utils/draw.py
index c82c52ef8..fedb08e17 100644
--- a/kornia/utils/draw.py
+++ b/kornia/utils/draw.py
@@ -79,7 +79,7 @@ def draw_line(image: torch.Tensor, p1: torch.Tensor, p2: torch.Tensor, color: to
B = x1 - x2
C = x2 * y1 - x1 * y2
- # make sure A is positive to utilize the functiom properly
+ # make sure A is positive to utilize the function properly
if A < 0:
A = -A
B = -B