TensorFlow 2.0 RC is available Learn more

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