テンソルフロー::作戦::卒業生画像のトリミングとサイズ変更

#include <image_ops.h>

入力イメージ テンソルに対する Crop_and_resize オペレーションの勾配を計算します。

まとめ

引数:

  • スコープ:スコープオブジェクト
  • grads: 形状[num_boxes, crop_height, crop_width, depth]の 4 次元テンソル。
  • box: 形状[num_boxes, 4]の 2 次元テンソル。テンソルの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: [0, batch)の int32 値を持つ形状[num_boxes]の 1 次元テンソル。 box_ind[i]の値は、 i番目のボックスが参照する画像を指定します。
  • image_size: 元の画像サイズを含む値[batch, image_height, image_width, depth]を持つ 1 次元テンソル。 image_heightimage_width両方とも正の値である必要があります。

オプションの属性 ( Attrsを参照):

  • method: 補間方法を指定する文字列。現時点では「双線形」のみがサポートされています。

戻り値:

  • Output : 形状[batch, image_height, image_width, depth]の 4 次元テンソル。

コンストラクターとデストラクター

CropAndResizeGradImage (const :: tensorflow::Scope & scope, :: tensorflow::Input grads, :: tensorflow::Input boxes, :: tensorflow::Input box_ind, :: tensorflow::Input image_size, DataType T)
CropAndResizeGradImage (const :: tensorflow::Scope & scope, :: tensorflow::Input grads, :: tensorflow::Input boxes, :: tensorflow::Input box_ind, :: tensorflow::Input image_size, DataType T, const CropAndResizeGradImage::Attrs & attrs)

パブリック属性

operation
output

公共機能

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

パブリック静的関数

Method (StringPiece x)

構造体

tensorflow:: ops:: CropAndResizeGradImage:: Attrs

CropAndResizeGradImageのオプションの属性セッター。

パブリック属性

手術

Operation operation

出力

::tensorflow::Output output

公共機能

卒業生画像のトリミングとサイズ変更

 CropAndResizeGradImage(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input grads,
  ::tensorflow::Input boxes,
  ::tensorflow::Input box_ind,
  ::tensorflow::Input image_size,
  DataType T
)

卒業生画像のトリミングとサイズ変更

 CropAndResizeGradImage(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input grads,
  ::tensorflow::Input boxes,
  ::tensorflow::Input box_ind,
  ::tensorflow::Input image_size,
  DataType T,
  const CropAndResizeGradImage::Attrs & attrs
)

ノード

::tensorflow::Node * node() const 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const 

パブリック静的関数

方法

Attrs Method(
  StringPiece x
)