Help protect the Great Barrier Reef with TensorFlow on Kaggle Join Challenge

tensorflow::ops::StatelessSampleDistortedBoundingBox::Attrs

#include <image_ops.h>

Optional attribute setters for StatelessSampleDistortedBoundingBox.

Summary

Public attributes

area_range_ = Default_area_range()
gtl::ArraySlice< float >
aspect_ratio_range_ = Default_aspect_ratio_range()
gtl::ArraySlice< float >
max_attempts_ = 100
int64
use_image_if_no_bounding_boxes_ = false
bool

Public functions

AreaRange(const gtl::ArraySlice< float > & x)
TF_MUST_USE_RESULT Attrs
The cropped area of the image must contain a fraction of the supplied image within this range.
AspectRatioRange(const gtl::ArraySlice< float > & x)
TF_MUST_USE_RESULT Attrs
The cropped area of the image must have an aspect ratio = width / height within this range.
MaxAttempts(int64 x)
TF_MUST_USE_RESULT Attrs
Number of attempts at generating a cropped region of the image of the specified constraints.
UseImageIfNoBoundingBoxes(bool x)
TF_MUST_USE_RESULT Attrs
Controls behavior if no bounding boxes supplied.

Public attributes

area_range_

gtl::ArraySlice< float > tensorflow::ops::StatelessSampleDistortedBoundingBox::Attrs::area_range_ = Default_area_range()

aspect_ratio_range_

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

max_attempts_

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

use_image_if_no_bounding_boxes_

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

Public functions

AreaRange

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

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

Defaults to [0.05, 1]

AspectRatioRange

TF_MUST_USE_RESULT Attrs tensorflow::ops::StatelessSampleDistortedBoundingBox::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

TF_MUST_USE_RESULT Attrs tensorflow::ops::StatelessSampleDistortedBoundingBox::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

UseImageIfNoBoundingBoxes

TF_MUST_USE_RESULT Attrs tensorflow::ops::StatelessSampleDistortedBoundingBox::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