tensorflow:: אופס:: SampleDistortedBoundingBox:: Attrs

#include <image_ops.h>

קובעי תכונות אופציונליים עבור SampleDistortedBoundingBox .

סיכום

תכונות ציבוריות

area_range_ = Default_area_range()
gtl::ArraySlice< float >
aspect_ratio_range_ = Default_aspect_ratio_range()
gtl::ArraySlice< float >
max_attempts_ = 100
int64
min_object_covered_ = 0.1f
float
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
מספר הניסיונות ליצור אזור חתוך של התמונה של האילוצים שצוינו.
MinObjectCovered (float 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::SampleDistortedBoundingBox::Attrs::area_range_ = Default_area_range()

טווח_יחס_גודל_

gtl::ArraySlice< float > tensorflow::ops::SampleDistortedBoundingBox::Attrs::aspect_ratio_range_ = Default_aspect_ratio_range()

מקסימום_נסיונות_

int64 tensorflow::ops::SampleDistortedBoundingBox::Attrs::max_attempts_ = 100

min_object_covered_

float tensorflow::ops::SampleDistortedBoundingBox::Attrs::min_object_covered_ = 0.1f

זרע2_

int64 tensorflow::ops::SampleDistortedBoundingBox::Attrs::seed2_ = 0

זֶרַע_

int64 tensorflow::ops::SampleDistortedBoundingBox::Attrs::seed_ = 0

use_image_if_no_bounding_boxes_

bool tensorflow::ops::SampleDistortedBoundingBox::Attrs::use_image_if_no_bounding_boxes_ = false

תפקידים ציבוריים

AreaRange

TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBox::Attrs::AreaRange(
  const gtl::ArraySlice< float > & x
)

האזור החתוך של התמונה חייב להכיל חלק מהתמונה שסופקה בטווח זה.

ברירת המחדל היא [0.05, 1]

AspectRatioRange

TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBox::Attrs::AspectRatioRange(
  const gtl::ArraySlice< float > & x
)

השטח החתוך של התמונה חייב להיות בעל יחס גובה-רוחב = רוחב/גובה בטווח זה.

ברירת המחדל היא [0.75, 1.33]

מקסימום ניסיונות

TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBox::Attrs::MaxAttempts(
  int64 x
)

מספר הניסיונות ליצור אזור חתוך של התמונה של האילוצים שצוינו.

לאחר כשלים max_attempts , החזר את התמונה כולה.

ברירת המחדל היא 100

MinObjectCovered

TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBox::Attrs::MinObjectCovered(
  float x
)

האזור החתוך של התמונה חייב להכיל לפחות חלק זה מכל תיבה תוחמת שסופקה.

הערך של פרמטר זה צריך להיות לא שלילי. במקרה של 0, השטח החתוך אינו צריך לחפוף אף אחת מהתיבות התוחמות שסופקו.

ברירת המחדל היא 0.1

זֶרַע

TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBox::Attrs::Seed(
  int64 x
)

אם seed או seed2 מוגדרים ללא אפס, מחולל המספרים האקראיים מוזרע על ידי ה- seed הנתון.

אחרת, הוא נזרע על ידי זרע אקראי.

ברירת המחדל היא 0

זרע 2

TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBox::Attrs::Seed2(
  int64 x
)

זרע שני כדי למנוע התנגשות זרע.

ברירת המחדל היא 0

UseImageIfNoBoundingBoxes

TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBox::Attrs::UseImageIfNoBoundingBoxes(
  bool x
)

שולט בהתנהגות אם אין תיבות תוחמות.

אם זה נכון, נניח שתיבה תוחמת מרומזת המכסה את כל הקלט. אם שקר, העלה שגיאה.

ברירת המחדל ל-false