tensorflow::ops::ExtractImagePatches
#include <array_ops.h> แยก patches จาก images และนำไปใส่ในมิติเอาต์พุต "ความลึก"
สรุป
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- รูปภาพ: เทนเซอร์ 4 มิติที่มีรูปร่าง
[batch, in_rows, in_cols, depth] - ksizes: ขนาดของหน้าต่างเลื่อนสำหรับแต่ละมิติของ
images - strides: ระยะห่างระหว่างจุดศูนย์กลางของสองส่วนภาพที่อยู่ติดกัน ต้องเป็น:
[1, stride_rows, stride_cols, 1] - อัตรา: ต้องเป็น:
[1, rate_rows, rate_cols, 1]นี่คือระยะก้าวของอินพุต ซึ่งระบุระยะห่างระหว่างตัวอย่างแพทช์สองตัวที่อยู่ติดกันในอินพุต เทียบเท่ากับการแยกแพทช์ด้วยpatch_sizes_eff = patch_sizes + (patch_sizes - 1) * (rates - 1)ตามด้วยการสุ่มตัวอย่างย่อยเชิงพื้นที่ด้วยปัจจัยของratesซึ่งเทียบเท่ากับrateในคอนโวลูชันแบบขยาย (หรือที่เรียกว่า Atrous) - การเติมช่องว่าง: ประเภทของอัลกอริทึมการเติมช่องว่างที่จะใช้
การส่งคืนสินค้า:
-
Output: เทนเซอร์ 4 มิติ ที่มีรูปร่าง[batch, out_rows, out_cols, ksize_rows * ksize_cols * depth]ซึ่งประกอบด้วยส่วนย่อยของภาพที่มีขนาดksize_rows x ksize_cols x depthที่ถูกแปลงเป็นเวกเตอร์ในมิติ "depth" หมายเหตุout_rowsและout_colsคือขนาดของส่วนย่อยของภาพที่ได้
ตัวสร้างและตัวทำลาย | |
|---|---|
ExtractImagePatches (const :: tensorflow::Scope & scope, :: tensorflow::Input images, const gtl::ArraySlice< int > & ksizes, const gtl::ArraySlice< int > & strides, const gtl::ArraySlice< int > & rates, StringPiece padding) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
patches | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
แพทช์
::tensorflow::Output patches
หน้าที่สาธารณะ
การแยกแพทช์รูปภาพ
ExtractImagePatches( const ::tensorflow::Scope & scope, ::tensorflow::Input images, const gtl::ArraySlice< int > & ksizes, const gtl::ArraySlice< int > & strides, const gtl::ArraySlice< int > & rates, StringPiece padding )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const