提交 f2a99538 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!2852 Unify Python Docs for C++ Detection Ops

Merge pull request !2852 from islam_amin/object_ops_doc
...@@ -151,7 +151,7 @@ class RandomCrop(cde.RandomCropOp): ...@@ -151,7 +151,7 @@ class RandomCrop(cde.RandomCropOp):
class RandomCropWithBBox(cde.RandomCropWithBBoxOp): class RandomCropWithBBox(cde.RandomCropWithBBoxOp):
""" """
Crop the input image at a random location and adjust bounding boxes for crop area Crop the input image at a random location and adjust bounding boxes accordingly.
Args: Args:
size (int or sequence): The output size of the cropped image. size (int or sequence): The output size of the cropped image.
...@@ -213,8 +213,7 @@ class RandomHorizontalFlip(cde.RandomHorizontalFlipOp): ...@@ -213,8 +213,7 @@ class RandomHorizontalFlip(cde.RandomHorizontalFlipOp):
class RandomHorizontalFlipWithBBox(cde.RandomHorizontalFlipWithBBoxOp): class RandomHorizontalFlipWithBBox(cde.RandomHorizontalFlipWithBBoxOp):
""" """
Flip the input image horizontally, randomly with a given probability. Flip the input image horizontally, randomly with a given probability and adjust bounding boxes accordingly.
Maintains data integrity by also flipping bounding boxes in an object detection pipeline.
Args: Args:
prob (float, optional): Probability of the image being flipped (default=0.5). prob (float, optional): Probability of the image being flipped (default=0.5).
...@@ -242,7 +241,7 @@ class RandomVerticalFlip(cde.RandomVerticalFlipOp): ...@@ -242,7 +241,7 @@ class RandomVerticalFlip(cde.RandomVerticalFlipOp):
class RandomVerticalFlipWithBBox(cde.RandomVerticalFlipWithBBoxOp): class RandomVerticalFlipWithBBox(cde.RandomVerticalFlipWithBBoxOp):
""" """
Flip the input image vertically, randomly with a given probability and adjust bounding boxes as well Flip the input image vertically, randomly with a given probability and adjust bounding boxes accordingly.
Args: Args:
prob (float, optional): Probability of the image being flipped (default=0.5). prob (float, optional): Probability of the image being flipped (default=0.5).
...@@ -256,8 +255,7 @@ class RandomVerticalFlipWithBBox(cde.RandomVerticalFlipWithBBoxOp): ...@@ -256,8 +255,7 @@ class RandomVerticalFlipWithBBox(cde.RandomVerticalFlipWithBBoxOp):
class BoundingBoxAugment(cde.BoundingBoxAugmentOp): class BoundingBoxAugment(cde.BoundingBoxAugmentOp):
""" """
Apply a given image transform on a random selection of bounding box regions Apply a given image transform on a random selection of bounding box regions of a given image.
of a given image.
Args: Args:
transform: C++ transformation function to be applied on random selection transform: C++ transformation function to be applied on random selection
...@@ -305,7 +303,7 @@ class Resize(cde.ResizeOp): ...@@ -305,7 +303,7 @@ class Resize(cde.ResizeOp):
class ResizeWithBBox(cde.ResizeWithBBoxOp): class ResizeWithBBox(cde.ResizeWithBBoxOp):
""" """
Resize the input image to the given size and adjust the bounding boxes accordingly. Resize the input image to the given size and adjust bounding boxes accordingly.
Args: Args:
size (int or sequence): The output size of the resized image. size (int or sequence): The output size of the resized image.
...@@ -335,7 +333,7 @@ class ResizeWithBBox(cde.ResizeWithBBoxOp): ...@@ -335,7 +333,7 @@ class ResizeWithBBox(cde.ResizeWithBBoxOp):
class RandomResizedCropWithBBox(cde.RandomCropAndResizeWithBBoxOp): class RandomResizedCropWithBBox(cde.RandomCropAndResizeWithBBoxOp):
""" """
Crop the input image to a random size and aspect ratio and adjust the Bounding Boxes accordingly Crop the input image to a random size and aspect ratio and adjust bounding boxes accordingly.
Args: Args:
size (int or sequence): The size of the output image. size (int or sequence): The size of the output image.
...@@ -534,7 +532,7 @@ class RandomResize(cde.RandomResizeOp): ...@@ -534,7 +532,7 @@ class RandomResize(cde.RandomResizeOp):
class RandomResizeWithBBox(cde.RandomResizeWithBBoxOp): class RandomResizeWithBBox(cde.RandomResizeWithBBoxOp):
""" """
Tensor operation to resize the input image using a randomly selected interpolation mode and adjust Tensor operation to resize the input image using a randomly selected interpolation mode and adjust
the bounding boxes accordingly. bounding boxes accordingly.
Args: Args:
size (int or sequence): The output size of the resized image. size (int or sequence): The output size of the resized image.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册