tensorflow::ops::CombinedNonMaxSuppression::Attrs

#include <image_ops.h>

Optional attribute setters for CombinedNonMaxSuppression.

Summary

Public attributes
clip_boxes_ = true
bool
pad_per_class_ = false
bool
Public functions
ClipBoxes(bool x)
TF_MUST_USE_RESULT Attrs
If true, assume the box coordinates are between [0, 1] and clip the output boxes if they fall beyond [0, 1].
PadPerClass(bool x)
TF_MUST_USE_RESULT Attrs
If false, the output nmsed boxes, scores and classes are padded/clipped to max_total_size.

Public attributes

clip_boxes_

bool tensorflow::ops::CombinedNonMaxSuppression::Attrs::clip_boxes_ = true

pad_per_class_

bool tensorflow::ops::CombinedNonMaxSuppression::Attrs::pad_per_class_ = false

Public functions

ClipBoxes

TF_MUST_USE_RESULT Attrs tensorflow::ops::CombinedNonMaxSuppression::Attrs::ClipBoxes(
  bool x
)

If true, assume the box coordinates are between [0, 1] and clip the output boxes if they fall beyond [0, 1].

If false, do not do clipping and output the box coordinates as it is.

Defaults to true

PadPerClass

TF_MUST_USE_RESULT Attrs tensorflow::ops::CombinedNonMaxSuppression::Attrs::PadPerClass(
  bool x
)

If false, the output nmsed boxes, scores and classes are padded/clipped to max_total_size.

If true, the output nmsed boxes, scores and classes are padded to be of length max_size_per_class*num_classes, unless it exceeds max_total_size in which case it is clipped to max_total_size. Defaults to false.

Defaults to false

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/cc/struct/tensorflow/ops/combined-non-max-suppression/attrs