tensorflow::ops::CropAndResizeGradBoxes
#include <image_ops.h>
Вычисляет градиент операции crop_and_resize относительно тензора входных координат ячеек.
Summary
Arguments:
- scope: An object Scope
- grads: A 4-D tensor of shape
[num_boxes, crop_height, crop_width, depth]. - image: A 4-D tensor of shape
[batch, image_height, image_width, depth]. Bothimage_heightandimage_widthneed to be positive. - boxes: A 2-D tensor of shape
[num_boxes, 4]. Thei-я строка тензора задаёт координаты прямоугольника в изображенииbox_ind[i]и задаётся в нормализованных координатах[y1, x1, y2, x2]. Значение нормализованной координатыyотображается на координату изображения вy * (image_height - 1), поэтому интервал[0, 1]нормализованной высоты изображения отображается в координатах высоты изображения как `[0, image_height - 1]`. Мы допускаем y1 > y2, в этом случае взятая область является перевернутой вверх ногами копией исходного изображения. Размеры по ширине обрабатываются аналогично. Допускаются нормализованные координаты, выходящие за пределы диапазона[0, 1], в этом случае мы используемextrapolation_valueдля экстраполяции значений входного изображения. - box_ind: A 1-D tensor of shape
[num_boxes]с целочисленными значениями типа int32 в[0, batch). Значениеbox_ind[i]указывает на изображение, к которому относитсяi-я ячейка.
Optional attributes (see Attrs):
- method: A string specifying the interpolation method. Currently only 'bilinear' is supported.
Returns:
-
Output: A 2-D tensor of shape[num_boxes, 4].
| Constructors and Destructors | |
|---|---|
CropAndResizeGradBoxes(const ::tensorflow::Scope & scope, ::tensorflow::Input grads, ::tensorflow::Input image, ::tensorflow::Input boxes, ::tensorflow::Input box_ind) | |
CropAndResizeGradBoxes(const ::tensorflow::Scope & scope, ::tensorflow::Input grads, ::tensorflow::Input image, ::tensorflow::Input boxes, ::tensorflow::Input box_ind, const CropAndResizeGradBoxes::Attrs & attrs) |
| Public attributes | |
|---|---|
operation | |
output | |
| Public functions | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Public static functions | |
|---|---|
Method(StringPiece x) | |
| Structs | |
|---|---|
| tensorflow::ops::CropAndResizeGradBoxes::Attrs | Optional attribute setters for CropAndResizeGradBoxes. |
Public attributes
operation
Operation operation
output
::tensorflow::Output output
Public functions
CropAndResizeGradBoxes
CropAndResizeGradBoxes( const ::tensorflow::Scope & scope, ::tensorflow::Input grads, ::tensorflow::Input image, ::tensorflow::Input boxes, ::tensorflow::Input box_ind )
CropAndResizeGradBoxes
CropAndResizeGradBoxes( const ::tensorflow::Scope & scope, ::tensorflow::Input grads, ::tensorflow::Input image, ::tensorflow::Input boxes, ::tensorflow::Input box_ind, const CropAndResizeGradBoxes::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Public static functions
Method
Attrs Method( StringPiece x )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/crop-and-resize-grad-boxes