tensorflow::
ops::
SampleDistortedBoundingBoxV2::
Attrs
#include <image_ops.h>
Optional attribute setters for SampleDistortedBoundingBoxV2 .
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
|
seed2_
= 0
|
int64
|
seed_
= 0
|
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.
|
Seed
(int64 x)
|
TF_MUST_USE_RESULT
Attrs
If either
seed
or
seed2
are set to non-zero, the random number generator is seeded by the given
seed
.
|
Seed2
(int64 x)
|
TF_MUST_USE_RESULT
Attrs
A second seed to avoid seed collision.
|
UseImageIfNoBoundingBoxes
(bool x)
|
TF_MUST_USE_RESULT
Attrs
Controls behavior if no bounding boxes supplied.
|
Public attributes
area_range_
gtl::ArraySlice< float > tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::area_range_ = Default_area_range()
aspect_ratio_range_
gtl::ArraySlice< float > tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::aspect_ratio_range_ = Default_aspect_ratio_range()
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
TF_MUST_USE_RESULT 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 this range.
Defaults to [0.05, 1]
AspectRatioRange
TF_MUST_USE_RESULT 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
TF_MUST_USE_RESULT 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
TF_MUST_USE_RESULT 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
TF_MUST_USE_RESULT Attrs tensorflow::ops::SampleDistortedBoundingBoxV2::Attrs::Seed2( int64 x )
A second seed to avoid seed collision.
Defaults to 0
UseImageIfNoBoundingBoxes
TF_MUST_USE_RESULT 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