テンソルフロー::作戦:: SampleDistortedBoundingBoxV2::属性

#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のいずれかが 0 以外に設定されている場合、乱数ジェネレータは指定された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

use_image_if_no_bounding_boxes_

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のいずれかが 0 以外に設定されている場合、乱数ジェネレータは指定されたseedによってシードされます。

それ以外の場合は、ランダム シードによってシードされます。

デフォルトは 0

シード2

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

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

デフォルトは 0

UseImageIfNoBoundingBoxes

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

境界ボックスが指定されていない場合の動作を制御します。

true の場合、入力全体をカバーする暗黙的な境界ボックスがあると見なされます。 false の場合、エラーが発生します。

デフォルトは false