Skip to content

Commit 6c27b30

Browse files
committed
blod parameter name
1 parent eed81c3 commit 6c27b30

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

docs/api/paddle/vision/transforms/Normalize__upper_cn.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ Normalize
1010
参数
1111
:::::::::
1212

13-
- mean (list|tuple,可选) - 用于每个通道归一化的均值。
14-
- std (list|tuple,可选) - 用于每个通道归一化的标准差值。
15-
- data_format (str,可选) - 数据的格式,必须为 'HWC' 或 'CHW'。 默认值为 'CHW'。
16-
- to_rgb (bool,可选) - 是否转换为 ``rgb`` 的格式。默认值为 False。
17-
- keys (list[str]|tuple[str],可选) - 与 ``BaseTransform`` 定义一致。默认值为 None。
13+
- **mean** (list|tuple,可选) - 用于每个通道归一化的均值。
14+
- **std** (list|tuple,可选) - 用于每个通道归一化的标准差值。
15+
- **data_format** (str,可选) - 数据的格式,必须为 'HWC' 或 'CHW'。 默认值为 'CHW'。
16+
- **to_rgb** (bool,可选) - 是否转换为 ``rgb`` 的格式。默认值为 False。
17+
- **keys** (list[str]|tuple[str],可选) - 与 ``BaseTransform`` 定义一致。默认值为 None。
1818

1919
形状
2020
:::::::::

docs/api/paddle/vision/transforms/Pad__upper_cn.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ Pad
1010
参数
1111
:::::::::
1212

13-
- padding (int|list|tuple) - 在图像边界上进行填充的范围。如果提供的是单个 int 值,则该值用于填充图像所有边;如果提供的是长度为 2 的元组/列表,则分别为图像左/右和顶部/底部进行填充;如果提供的是长度为 4 的元组/列表,则按照左,上,右和下的顺序为图像填充。
14-
- fill (int|list|tuple,可选) - 用于填充的像素值。仅当 padding_mode 为 constant 时参数值有效。 默认值:0。 如果参数值是一个长度为 3 的元组,则会分别用于填充 R,G,B 通道。
15-
- padding_mode (string,可选) - 填充模式。支持: constant, edge, reflect 或 symmetric。 默认值:constant。
13+
- **padding** (int|list|tuple) - 在图像边界上进行填充的范围。如果提供的是单个 int 值,则该值用于填充图像所有边;如果提供的是长度为 2 的元组/列表,则分别为图像左/右和顶部/底部进行填充;如果提供的是长度为 4 的元组/列表,则按照左,上,右和下的顺序为图像填充。
14+
- **fill** (int|list|tuple,可选) - 用于填充的像素值。仅当 padding_mode 为 constant 时参数值有效。 默认值:0。 如果参数值是一个长度为 3 的元组,则会分别用于填充 R,G,B 通道。
15+
- **padding_mode** (string,可选) - 填充模式。支持: constant, edge, reflect 或 symmetric。 默认值:constant。
1616

1717
- ``constant`` 表示使用常量值进行填充,该值由 fill 参数指定;
1818
- ``edge`` 表示使用图像边缘像素值进行填充;
1919
- ``reflect`` 表示使用原图像的镜像值进行填充(不使用边缘上的值);比如:使用该模式对 ``[1, 2, 3, 4]`` 的两端分别填充 2 个值,结果是 ``[3, 2, 1, 2, 3, 4, 3, 2]``。
2020
- ``symmetric`` 表示使用原图像的镜像值进行填充(使用边缘上的值);比如:使用该模式对 ``[1, 2, 3, 4]`` 的两端分别填充 2 个值,结果是 ``[2, 1, 1, 2, 3, 4, 4, 3]``。
2121

22-
- keys (list[str]|tuple[str],可选) - 与 ``BaseTransform`` 定义一致。默认值: None。
22+
- **keys** (list[str]|tuple[str],可选) - 与 ``BaseTransform`` 定义一致。默认值: None。
2323

2424
形状
2525
:::::::::

docs/api/paddle/vision/transforms/Resize__upper_cn.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Resize
1010
参数
1111
:::::::::
1212

13-
- size (int|list|tuple) - 输出图像大小。如果 size 是一个序列,例如(h,w),输出大小将与此匹配。如果 size 为 int,图像的较小边缘将与此数字匹配,即如果 height > width,则图像将重新缩放为(size * height / width, size)。
14-
- interpolation (int|str,可选) - 插值的方法,默认值: 'bilinear'。
13+
- **size** (int|list|tuple) - 输出图像大小。如果 size 是一个序列,例如(h,w),输出大小将与此匹配。如果 size 为 int,图像的较小边缘将与此数字匹配,即如果 height > width,则图像将重新缩放为(size * height / width, size)。
14+
- **interpolation** (int|str,可选) - 插值的方法,默认值: 'bilinear'。
1515

1616
- 当使用 ``pil`` 作为后端时,支持的插值方法如下
1717

@@ -30,7 +30,7 @@ Resize
3030
+ "bicubic": cv2.INTER_CUBIC,
3131
+ "lanczos": cv2.INTER_LANCZOS4。
3232

33-
- keys (list[str]|tuple[str],可选) - 与 ``BaseTransform`` 定义一致。默认值: None。
33+
- **keys** (list[str]|tuple[str],可选) - 与 ``BaseTransform`` 定义一致。默认值: None。
3434

3535
形状
3636
:::::::::

0 commit comments

Comments
 (0)