tensorflow :: ops :: Kırpma ve Yeniden BoyutlandırmaGradBoxes
#include <image_ops.h>
Giriş kutuları tensöründe kırpma_ve_resize değerinin gradyanını hesaplar.
Özet
Argümanlar:
- kapsam: Bir Scope nesnesi
- grads: 4 boyutlu bir şekil tensörü
[num_boxes, crop_height, crop_width, depth]
. - image: 4 boyutlu bir şekil tensörü
[batch, image_height, image_width, depth]
. Hemimage_height
veimage_width
ihtiyacı pozitif olması. - kutular: 2 boyutlu bir şekil tensörü
[num_boxes, 4]
.i
tensörünün inci satır bir kutu koordinatlarını belirtirbox_ind[i]
görüntü ve normalize koordinatları belirtilir[y1, x1, y2, x2]
. Normalleştirilmiş görüntü yüksekliği[0, 1]
aralığı görüntü yüksekliği koordinatlarında “[0, görüntü_yüksekliği - 1] ile eşleştirildiği içiny
normalleştirilmiş bir koordinat değeriy * (image_height - 1)
görüntü koordinatına eşlenir. Y1> y2'ye izin veriyoruz, bu durumda örneklenen kırpma, orijinal görüntünün yukarı-aşağı çevrilmiş bir versiyonudur. Genişlik boyutu benzer şekilde ele alınır.[0, 1]
aralığının dışındaki normalleştirilmiş koordinatlara izin verilir, bu durumda giriş görüntü değerleriniextrapolation_value
etmek için ekstrapolasyon_değerini kullanırız. - box_ind:
[0, batch)
içinde int32 değerleri olan bir 1-D şekil tensörü[num_boxes]
.box_ind[i]
değeri,i
inci kutusununbox_ind[i]
görüntüyü belirtir.
İsteğe bağlı özellikler (bkz. Attrs
):
- yöntem: Enterpolasyon yöntemini belirten bir dize. Şimdilik yalnızca "çift doğrusal" desteklenmektedir.
İadeler:
-
Output
: 2 boyutlu bir şekil tensörü[num_boxes, 4]
.
Yapıcılar ve Yıkıcılar | |
---|---|
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) |
Genel özellikler | |
---|---|
operation | |
output |
Kamusal işlevler | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Genel statik işlevler | |
---|---|
Method (StringPiece x) |
Yapılar | |
---|---|
tensorflow :: ops :: CropAndResizeGradBoxes :: Attrs | CropAndResizeGradBoxes için isteğe bağlı öznitelik ayarlayıcıları. |
Genel özellikler
operasyon
Operation operation
çıktı
::tensorflow::Output output
Kamusal işlevler
Kırpma ve Yeniden BoyutlandırmaGradBoxes
CropAndResizeGradBoxes( const ::tensorflow::Scope & scope, ::tensorflow::Input grads, ::tensorflow::Input image, ::tensorflow::Input boxes, ::tensorflow::Input box_ind )
Kırpma ve Yeniden BoyutlandırmaGradBoxes
CropAndResizeGradBoxes( const ::tensorflow::Scope & scope, ::tensorflow::Input grads, ::tensorflow::Input image, ::tensorflow::Input boxes, ::tensorflow::Input box_ind, const CropAndResizeGradBoxes::Attrs & attrs )
düğüm
::tensorflow::Node * node() const
operator :: tensorflow :: Girdi
operator::tensorflow::Input() const
operator :: tensorflow :: Çıktı
operator::tensorflow::Output() const
Genel statik işlevler
Yöntem
Attrs Method( StringPiece x )