تينسورفلو :: العمليات :: CropAndResizeGradImage
#include <image_ops.h>
يحسب التدرج اللوني لـ crop_and_resize op wrt موتر الصورة المدخلة.
ملخص
الحجج:
- النطاق: كائن النطاق
- الخريجون: موتر 4-D للشكل
[num_boxes, crop_height, crop_width, depth]
- مربعات: موتر الشكل
[num_boxes, 4]
. وi
التوالي -th من موتر يحدد إحداثيات مربع فيbox_ind[i]
صورة ويتم تحديد الإحداثيات في تطبيع[y1, x1, y2, x2]
. يتم تعيين قيمة إحداثي معيارية لـy
لإحداثيات الصورة عندy * (image_height - 1)
، بحيث يتم تعيين الفاصل[0, 1]
لارتفاع الصورة المعياري إلى `[0، image_height - 1] في إحداثيات ارتفاع الصورة. نحن نسمح بـ y1> y2 ، وفي هذه الحالة يكون المحصول الذي تم أخذ عينات منه عبارة عن نسخة مقلوبة لأعلى لأسفل من الصورة الأصلية. يتم التعامل مع أبعاد العرض بالمثل. يُسمح بالإحداثيات المعيارية خارج النطاق[0, 1]
، وفي هذه الحالة نستخدمextrapolation_value
value لاستقراء قيم صورة الإدخال. - box_ind: موتر 1-D للشكل
[num_boxes]
في[0, batch)
.box_ind[i]
قيمةbox_ind[i]
الصورة التي يشير إليها المربعi
. - image_size: موتر 1-D بقيمة
[batch, image_height, image_width, depth]
تحتوي على حجم الصورة الأصلي. يجب أن يكون كل منimage_height
وimage_width
.
السمات الاختيارية (انظر Attrs
):
- الطريقة: سلسلة تحدد طريقة الاستيفاء. يتم دعم "خطي ثنائي" فقط في الوقت الحالي.
عائدات:
-
Output
: موتر 4-D للشكل[batch, image_height, image_width, depth]
.
البنائين والمدمرين | |
---|---|
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
CropAndResizeGradImage( const ::tensorflow::Scope & scope, ::tensorflow::Input grads, ::tensorflow::Input boxes, ::tensorflow::Input box_ind, ::tensorflow::Input image_size, DataType T )
CropAndResizeGradImage
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 :: Output
operator::tensorflow::Output() const
وظائف ثابتة عامة
طريقة
Attrs Method( StringPiece x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2020-04-20 (حسب التوقيت العالمي المتفَّق عليه)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"لا يحتوي على المعلومات التي أحتاج إليها."
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"الخطوات معقدة للغاية / كثيرة جدًا."
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"المحتوى قديم."
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ثمة مشكلة في الترجمة."
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"غير ذلك"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"يسهُل فهم المحتوى."
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"ساعَدني المحتوى في حلّ مشكلتي."
},{
"type": "thumb-up",
"id": "otherUp",
"label":"غير ذلك"
}]