tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs

#include <image_ops.h>

Optional attribute setters for SampleDistortedBoundingBoxV2.

Summary

Public attributes

area_range_ = {0.05f, 1.0f}
gtl::ArraySlice< float >
aspect_ratio_range_ = {0.75f, 1.33f}
gtl::ArraySlice< float >
max_attempts_ = 100
int64
seed2_ = 0
int64
seed_ = 0
int64
use_image_if_no_bounding_boxes_ = false
bool

Public functions

AreaRange(const gtl::ArraySlice< float > & x)
The cropped area of the image must contain a fraction of the supplied image within in this range.
AspectRatioRange(const gtl::ArraySlice< float > & x)
The cropped area of the image must have an aspect ratio = width / height within this range.
MaxAttempts(int64 x)
Number of attempts at generating a cropped region of the image of the specified constraints.
Seed(int64 x)
If either seed or seed2 are set to non-zero, the random number generator is seeded by the given seed.
Seed2(int64 x)
A second seed to avoid seed collision.
UseImageIfNoBoundingBoxes(bool x)
Controls behavior if no bounding boxes supplied.

Public attributes

area_range_

gtl::ArraySlice< float > tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::area_range_ = {0.05f, 1.0f}

aspect_ratio_range_

gtl::ArraySlice< float > tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::aspect_ratio_range_ = {0.75f, 1.33f}

max_attempts_

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

seed2_

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

seed_

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

Public functions

AreaRange

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

The cropped area of the image must contain a fraction of the supplied image within in this range.

Defaults to [0.05, 1]

AspectRatioRange

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

The cropped area of the image must have an aspect ratio = width / height within this range.

Defaults to [0.75, 1.33]

MaxAttempts

Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::MaxAttempts(
  int64 x
)

Number of attempts at generating a cropped region of the image of the specified constraints.

After max_attempts failures, return the entire image.

Defaults to 100

Seed

Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::Seed(
  int64 x
)

If either seed or seed2 are set to non-zero, the random number generator is seeded by the given seed.

Otherwise, it is seeded by a random seed.

Defaults to 0

Seed2

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

A second seed to avoid seed collision.

Defaults to 0

UseImageIfNoBoundingBoxes

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

Controls behavior if no bounding boxes supplied.

If true, assume an implicit bounding box covering the whole input. If false, raise an error.

Defaults to false