tensorflow:: אופס:: SampleDistortedBoundingBoxV2:: Attrs
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
#include <image_ops.h>
קובעי תכונות אופציונליים עבור SampleDistortedBoundingBoxV2 .
תַקצִיר
תכונות ציבוריות | |
---|---|
area_range_ = Default_area_range() | gtl::ArraySlice< float > |
aspect_ratio_range_ = Default_aspect_ratio_range() | gtl::ArraySlice< float > |
max_attempts_ = 100 | int64 |
seed2_ = 0 | int64 |
seed_ = 0 | int64 |
use_image_if_no_bounding_boxes_ = false | bool |
תפקידים ציבוריים | |
---|---|
AreaRange (const gtl::ArraySlice< float > & x) | TF_MUST_USE_RESULT Attrs האזור החתוך של התמונה חייב להכיל חלק מהתמונה שסופקה בטווח זה. |
AspectRatioRange (const gtl::ArraySlice< float > & x) | TF_MUST_USE_RESULT Attrs השטח החתוך של התמונה חייב להיות בעל יחס גובה-רוחב = רוחב/גובה בטווח זה. |
MaxAttempts (int64 x) | TF_MUST_USE_RESULT Attrs מספר הניסיונות ליצור אזור חתוך של התמונה של האילוצים שצוינו. |
Seed (int64 x) | TF_MUST_USE_RESULT Attrs אם seed או seed2 מוגדרים ללא אפס, מחולל המספרים האקראיים מוזרע על ידי ה- seed הנתון. |
Seed2 (int64 x) | TF_MUST_USE_RESULT Attrs זרע שני כדי למנוע התנגשות זרע. |
UseImageIfNoBoundingBoxes (bool x) | TF_MUST_USE_RESULT Attrs שולט בהתנהגות אם אין תיבות תוחמות. |
תכונות ציבוריות
טווח_שטח
gtl::ArraySlice< float > tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::area_range_ = Default_area_range()
טווח_גובה_רוחב_
gtl::ArraySlice< float > tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::aspect_ratio_range_ = Default_aspect_ratio_range()
מקסימום_נסיונות_
int64 tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::max_attempts_ = 100
זרע2_
int64 tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::seed2_ = 0
זֶרַע_
int64 tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::seed_ = 0
use_image_if_no_bounding_boxes_
bool tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::use_image_if_no_bounding_boxes_ = false
תפקידים ציבוריים
AreaRange
TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::AreaRange( const gtl::ArraySlice< float > & x )
האזור החתוך של התמונה חייב להכיל חלק מהתמונה שסופקה בטווח זה.
ברירת המחדל היא [0.05, 1]
AspectRatioRange
TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::AspectRatioRange( const gtl::ArraySlice< float > & x )
השטח החתוך של התמונה חייב להיות בעל יחס גובה-רוחב = רוחב/גובה בטווח זה.
ברירת המחדל היא [0.75, 1.33]
מקסימום ניסיונות
TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::MaxAttempts( int64 x )
מספר הניסיונות ליצור אזור חתוך של התמונה של האילוצים שצוינו.
לאחר כשלים max_attempts
, החזר את התמונה כולה.
ברירת המחדל היא 100
זֶרַע
TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::Seed( int64 x )
אם seed
או seed2
מוגדרים ללא אפס, מחולל המספרים האקראיים מוזרע על ידי ה- seed
הנתון.
אחרת, הוא נזרע על ידי זרע אקראי.
ברירת המחדל היא 0
זרע 2
TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::Seed2( int64 x )
זרע שני כדי למנוע התנגשות זרע.
ברירת המחדל היא 0
UseImageIfNoBoundingBoxes
TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::UseImageIfNoBoundingBoxes( bool x )
שולט בהתנהגות אם אין תיבות תוחמות.
אם זה נכון, נניח שתיבה תוחמת מרומזת המכסה את כל הקלט. אם שקר, העלה שגיאה.
ברירת המחדל ל-false