π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
docs: Fix a few typos (#1774)
Tim Gates442b3b0a84bc
diff --git a/docs/generate_example_images.py b/docs/generate_example_images.pyindex 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 seedtorch.manual_seed(seed)- # apply the augmentaiton to the image and concat+ # apply the augmentation to the image and concatout = aug(img_in)if aug_name == "CenterCrop":@@ -121,7 +121,7 @@ def main():aug = cls(*args, p=1.0)# set seedtorch.manual_seed(seed)- # apply the augmentaiton to the image and concat+ # apply the augmentation to the image and concatout, _ = 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 imagediff --git a/kornia/metrics/mean_iou.py b/kornia/metrics/mean_iou.pyindex 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: fdef 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.pyindex 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: toB = x1 - x2C = x2 * y1 - x1 * y2- # make sure A is positive to utilize the functiom properly+ # make sure A is positive to utilize the function properlyif A < 0:A = -AB = -B