diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2016-12-28 14:46:24 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-12-28 15:06:23 -0800 |
commit | 4dfc5d68e97ec4fa62d13af445a5a122f90c60f1 (patch) | |
tree | bda9eb572ea60fd661b122a7a42996c3cfb42e7a | |
parent | 2d8a85420ae211f9d6cd1fb473ac004b95bfe692 (diff) |
Minor fix: allowing min_object_overlap to be 0.
Change: 143134173
-rw-r--r-- | tensorflow/core/kernels/sample_distorted_bounding_box_op.cc | 2 | ||||
-rw-r--r-- | tensorflow/core/ops/image_ops.cc | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tensorflow/core/kernels/sample_distorted_bounding_box_op.cc b/tensorflow/core/kernels/sample_distorted_bounding_box_op.cc index 3cb0444160..96fff23f47 100644 --- a/tensorflow/core/kernels/sample_distorted_bounding_box_op.cc +++ b/tensorflow/core/kernels/sample_distorted_bounding_box_op.cc @@ -201,7 +201,7 @@ class SampleDistortedBoundingBoxOp : public OpKernel { OP_REQUIRES_OK( context, context->GetAttr("min_object_covered", &min_object_covered_)); OP_REQUIRES( - context, min_object_covered_ > 0, + context, min_object_covered_ >= 0, errors::InvalidArgument("Min object covered must be non-negative: ", min_object_covered_)); diff --git a/tensorflow/core/ops/image_ops.cc b/tensorflow/core/ops/image_ops.cc index 55e1425228..009f52543b 100644 --- a/tensorflow/core/ops/image_ops.cc +++ b/tensorflow/core/ops/image_ops.cc @@ -698,7 +698,9 @@ seed: If either `seed` or `seed2` are set to non-zero, the random number seed. seed2: A second seed to avoid seed collision. min_object_covered: The cropped area of the image must contain at least this - fraction of any bounding box supplied. + fraction of any bounding box supplied. The value of this parameter should be + non-negative. In the case of 0, the cropped area does not need to overlap + any of the bounding boxes supplied. aspect_ratio_range: The cropped area of the image must have an aspect ratio = width / height within this range. area_range: The cropped area of the image must contain a fraction of the |