Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
magicwindyyd
mindspore
提交
f2a99538
M
mindspore
项目概览
magicwindyyd
/
mindspore
与 Fork 源项目一致
Fork自
MindSpore / mindspore
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindspore
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f2a99538
编写于
7月 04, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
7月 04, 2020
浏览文件
操作
浏览文件
下载
差异文件
!2852 Unify Python Docs for C++ Detection Ops
Merge pull request !2852 from islam_amin/object_ops_doc
上级
8b78bbc3
90650658
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
9 deletion
+7
-9
mindspore/dataset/transforms/vision/c_transforms.py
mindspore/dataset/transforms/vision/c_transforms.py
+7
-9
未找到文件。
mindspore/dataset/transforms/vision/c_transforms.py
浏览文件 @
f2a99538
...
@@ -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 a
s well
Flip the input image vertically, randomly with a given probability and adjust bounding boxes a
ccordingly.
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录