Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_38905368
tensorflow
提交
b0e20ead
T
tensorflow
项目概览
qq_38905368
/
tensorflow
与 Fork 源项目一致
从无法访问的项目Fork
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tensorflow
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b0e20ead
编写于
12月 15, 2015
作者:
A
A. Unique TensorFlower
提交者:
Vijay Vasudevan
12月 15, 2015
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update generated Op docs.
Change: 110278005
上级
b7f7e89d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
66 addition
and
44 deletion
+66
-44
tensorflow/g3doc/api_docs/python/array_ops.md
tensorflow/g3doc/api_docs/python/array_ops.md
+5
-6
tensorflow/g3doc/api_docs/python/image.md
tensorflow/g3doc/api_docs/python/image.md
+53
-38
tensorflow/g3doc/api_docs/python/index.md
tensorflow/g3doc/api_docs/python/index.md
+1
-0
tensorflow/g3doc/api_docs/python/train.md
tensorflow/g3doc/api_docs/python/train.md
+7
-0
未找到文件。
tensorflow/g3doc/api_docs/python/array_ops.md
浏览文件 @
b0e20ead
...
...
@@ -558,13 +558,12 @@ For example:
```
prettyprint
# 't' is [[1, 1], [2, 2]]
# 'paddings' is [[1, 1]
]
, [2, 2]]
# 'paddings' is [[1, 1], [2, 2]]
# rank of 't' is 2
pad(t, paddings) ==> [[0, 0, 0, 0, 0]
[0, 0, 0, 0, 0]
[0, 1, 1, 0, 0]
[[0, 2, 2, 0, 0]
[0, 0, 0, 0, 0]]
pad(t, paddings) ==> [[0, 0, 0, 0, 0, 0]
[0, 0, 1, 1, 0, 0]
[0, 0, 2, 2, 0, 0]
[0, 0, 0, 0, 0, 0]]
```
##### Args:
...
...
tensorflow/g3doc/api_docs/python/image.md
浏览文件 @
b0e20ead
...
...
@@ -782,7 +782,7 @@ corresponds to pure red, hue 1/3 is pure green, and 2/3 is pure blue.
- - -
### `tf.image.convert_image_dtype(image, dtype, name=None)` {#convert_image_dtype}
### `tf.image.convert_image_dtype(image, dtype,
saturate=False,
name=None)` {#convert_image_dtype}
Convert
`image`
to
`dtype`
, scaling its values if needed.
...
...
@@ -794,15 +794,19 @@ positive representable number for the data type.
This op converts between data types, scaling the values appropriately before
casting.
Note that for floating point inputs, this op expects values to lie in [0,1).
Conversion of an image containing values outside that range may lead to
overflow errors when converted to integer
`Dtype`
s.
Note that converting from floating point inputs to integer types may lead to
over/underflow problems. Set saturate to
`True`
to avoid such problem in
problematic conversions. Saturation will clip the output into the allowed
range before performing a potentially dangerous cast (i.e. when casting from
a floating point to an integer type, or when casting from an signed to an
unsigned type).
##### Args:
*
<b>
`image`
</b>
: An image.
*
<b>
`dtype`
</b>
: A
`DType`
to convert
`image`
to.
*
<b>
`saturate`
</b>
: If
`True`
, clip the input before casting (if necessary).
*
<b>
`name`
</b>
: A name for this operation (optional).
##### Returns:
...
...
@@ -824,29 +828,30 @@ type and representation (RGB or HSV).
- - -
### `tf.image.adjust_brightness(image, delta
, min_value=None, max_value=None
)` {#adjust_brightness}
### `tf.image.adjust_brightness(image, delta)` {#adjust_brightness}
Adjust the brightness of RGB or Grayscale images.
Th
e value
`delta`
is added to all components of the tensor
`image`
.
`image`
and
`delta`
are cast to
`float`
before adding, and the resulting values ar
e
clamped to
`[min_value, max_value]`
. Finally, the result is cast back
to
`images.dtype`
.
Th
is is a convenience method that converts an RGB image to float
representation, adjusts its brightness, and then converts it back to th
e
original data type. If several adjustments are chained it is advisable
to
minimize the number of redundant conversions
.
If
`min_value`
or
`max_value`
are not given, they are set to the minimum and
maximum allowed values for
`image.dtype`
respectively.
The value
`delta`
is added to all components of the tensor
`image`
. Both
`image`
and
`delta`
are converted to
`float`
before adding (and
`image`
is
scaled appropriately if it is in fixed-point representation). For regular
images,
`delta`
should be in the range
`[0,1)`
, as it is added to the image in
floating point representation, where pixel values are in the
`[0,1)`
range.
##### Args:
*
<b>
`image`
</b>
: A tensor.
*
<b>
`delta`
</b>
: A scalar. Amount to add to the pixel values.
*
<b>
`min_value`
</b>
: Minimum value for output.
*
<b>
`max_value`
</b>
: Maximum value for output.
##### Returns:
A tensor of the same shape and type as
`image`
.
A
brightness-adjusted
tensor of the same shape and type as
`image`
.
- - -
...
...
@@ -858,14 +863,10 @@ Adjust the brightness of images by a random factor.
Equivalent to
`adjust_brightness()`
using a
`delta`
randomly picked in the
interval
`[-max_delta, max_delta)`
.
Note that
`delta`
is picked as a float. Because for integer type images,
the brightness adjusted result is rounded before casting, integer images may
have modifications in the range
`[-max_delta,max_delta]`
.
##### Args:
*
<b>
`image`
</b>
:
3-D tensor of shape
`[height, width, channels]`
.
*
<b>
`image`
</b>
:
An image
.
*
<b>
`max_delta`
</b>
: float, must be non-negative.
*
<b>
`seed`
</b>
: A Python integer. Used to create a random seed. See
[
`set_random_seed`
](
../../api_docs/python/constant_op.md#set_random_seed
)
...
...
@@ -873,7 +874,7 @@ have modifications in the range `[-max_delta,max_delta]`.
##### Returns:
3-D tensor of images of shape
`[height, width, channels]`
The brightness-adjusted image.
##### Raises:
...
...
@@ -884,44 +885,35 @@ have modifications in the range `[-max_delta,max_delta]`.
- - -
### `tf.image.adjust_contrast(images, contrast_factor
, min_value=None, max_value=None
)` {#adjust_contrast}
### `tf.image.adjust_contrast(images, contrast_factor)` {#adjust_contrast}
Adjust contrast of RGB or grayscale images.
This is a convenience method that converts an RGB image to float
representation, adjusts its contrast, and then converts it back to the
original data type. If several adjustments are chained it is advisable to
minimize the number of redundant conversions.
`images`
is a tensor of at least 3 dimensions. The last 3 dimensions are
interpreted as
`[height, width, channels]`
. The other dimensions only
represent a collection of images, such as
`[batch, height, width, channels].`
Contrast is adjusted independently for each channel of each image.
For each channel, this Op
first
computes the mean of the image pixels in the
For each channel, this Op computes the mean of the image pixels in the
channel and then adjusts each component
`x`
of each pixel to
`(x - mean) * contrast_factor + mean`
.
The adjusted values are then clipped to fit in the
`[min_value, max_value]`
interval. If
`min_value`
or
`max_value`
is not given, it is replaced with the
minimum and maximum values for the data type of
`images`
respectively.
The contrast-adjusted image is always computed as
`float`
, and it is
cast back to its original type after clipping.
##### Args:
*
<b>
`images`
</b>
: Images to adjust. At least 3-D.
*
<b>
`contrast_factor`
</b>
: A float multiplier for adjusting contrast.
*
<b>
`min_value`
</b>
: Minimum value for clipping the adjusted pixels.
*
<b>
`max_value`
</b>
: Maximum value for clipping the adjusted pixels.
##### Returns:
The constrast-adjusted image or images.
##### Raises:
*
<b>
`ValueError`
</b>
: if the arguments are invalid.
- - -
...
...
@@ -935,7 +927,7 @@ picked in the interval `[lower, upper]`.
##### Args:
*
<b>
`image`
</b>
:
3-D tensor of shape
`[height, width, channels]`
.
*
<b>
`image`
</b>
:
An image tensor with 3 or more dimensions
.
*
<b>
`lower`
</b>
: float. Lower bound for the random contrast factor.
*
<b>
`upper`
</b>
: float. Upper bound for the random contrast factor.
*
<b>
`seed`
</b>
: A Python integer. Used to create a random seed. See
...
...
@@ -944,7 +936,7 @@ picked in the interval `[lower, upper]`.
##### Returns:
3-D tensor of shape
`[height, width, channels]`
.
The contrast-adjusted tensor
.
##### Raises:
...
...
@@ -1105,3 +1097,26 @@ Note that this implementation is limited:
*
<b>
`ValueError`
</b>
: if the shape of 'image' is incompatible with this function.
## Other Functions and Classes
- - -
### `tf.image.saturate_cast(image, dtype)` {#saturate_cast}
Performs a safe cast of image data to
`dtype`
.
This function casts the data in image to
`dtype`
, without applying any
scaling. If there is a danger that image data would over or underflow in the
cast, this op applies the appropriate clamping before the cast.
##### Args:
*
<b>
`image`
</b>
: An image to cast to a different data type.
*
<b>
`dtype`
</b>
: A
`DType`
to cast
`image`
to.
##### Returns:
`image`
, safely cast to
`dtype`
.
tensorflow/g3doc/api_docs/python/index.md
浏览文件 @
b0e20ead
...
...
@@ -229,6 +229,7 @@
*
[
`resize_nearest_neighbor`
](
../../api_docs/python/image.md#resize_nearest_neighbor
)
*
[
`rgb_to_grayscale`
](
../../api_docs/python/image.md#rgb_to_grayscale
)
*
[
`rgb_to_hsv`
](
../../api_docs/python/image.md#rgb_to_hsv
)
*
[
`saturate_cast`
](
../../api_docs/python/image.md#saturate_cast
)
*
[
`transpose_image`
](
../../api_docs/python/image.md#transpose_image
)
*
**[Sparse Tensors](../../api_docs/python/sparse_ops.md)**
:
...
...
tensorflow/g3doc/api_docs/python/train.md
浏览文件 @
b0e20ead
...
...
@@ -1308,6 +1308,13 @@ depending on whether or not a `Coordinator` was passed to
was captured. (No exceptions are captured when using a Coordinator.)
- - -
#### `tf.train.QueueRunner.name` {#QueueRunner.name}
The string name of the underlying Queue.
- - -
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录