เทนเซอร์โฟลว์:: ปฏิบัติการ:: แยก ImagePatches
#include <array_ops.h> แยก patches ช์ออกจาก images และวางไว้ในมิติเอาต์พุต "เชิงลึก"
สรุป
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- รูปภาพ: เทนเซอร์ 4 มิติที่มีรูปร่าง
[batch, in_rows, in_cols, depth] - ksizes: ขนาดของหน้าต่างบานเลื่อนสำหรับ
imagesแต่ละมิติ - ก้าวย่าง: ศูนย์กลางของสองแพตช์ติดต่อกันอยู่ในรูปภาพไกลแค่ไหน ต้องเป็น:
[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) - padding: ประเภทของอัลกอริธึมการเติมที่จะใช้
ผลตอบแทน:
-
Output: เทนเซอร์ 4 มิติที่มีรูปร่าง[batch, out_rows, out_cols, ksize_rows * ksize_cols * depth]ที่มีแพตช์รูปภาพที่มีขนาดksize_rows x ksize_cols x depthvectorized ในมิติ "ความลึก" หมายเหตุ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
งานสาธารณะ
แยก ImagePatches
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
ตัวดำเนินการ::tensorflow::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const