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_heightиimage_widthдолжны быть положительными. - boxes: A 2-D tensor of shape
[num_boxes, 4]. Строкаi-го тензора задает координаты ящика в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: Строка, определяющая метод интерполяции. Только 'bilinear' поддерживается на данный момент.
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 | Дополнительные атрибуты для 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/r2.3/api_docs/cc/class/tensorflow/ops/crop-and-resize-grad-boxes