tensorflow:: ops:: 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
シードの衝突を避けるための2つ目のシード。
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

境界ボックスがない場合は画像を使用します。

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

公的機能

エリア範囲

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

画像の切り抜き領域には、提供された画像の一部がこの範囲内に含まれている必要があります。

デフォルト値は[0.05, 1]です。

アスペクト比範囲

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
)

シードの衝突を避けるための2つ目のシード。

デフォルト値は0です

境界ボックスがない場合は画像を使用する

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

バウンディングボックスが指定されていない場合の動作を制御します。

真の場合、入力全体を覆う暗黙の境界ボックスが存在すると仮定します。偽の場合、エラーを発生させます。

デフォルトはfalse