@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class CombinedNonMaxSuppression extends Pointer
[batch_size, num_boxes, q, 4]
. If q
is 1 then
same boxes are used for all classes otherwise, if q
is equal to number of
classes, class-specific boxes are used.
* scores: A 3-D float tensor of shape [batch_size, num_boxes, num_classes]
representing a single score corresponding to each box (each row of boxes).
* max_output_size_per_class: A scalar integer tensor representing the maximum number of
boxes to be selected by non max suppression per class
* max_total_size: A scalar representing maximum number of boxes retained over all classes.
* iou_threshold: A 0-D float tensor representing the threshold for deciding whether
boxes overlap too much with respect to IOU.
* score_threshold: A 0-D float tensor representing the threshold for deciding when to remove
boxes based on score.
Optional attributes (see Attrs
):
* pad_per_class: 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.
* clip_boxes: 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.
Returns:
* Output
nmsed_boxes: A [batch_size, max_detections, 4] float32 tensor
containing the non-max suppressed boxes.
* Output
nmsed_scores: A [batch_size, max_detections] float32 tensor
containing the scores for the boxes.
* Output
nmsed_classes: A [batch_size, max_detections] float32 tensor
containing the classes for the boxes.
* Output
valid_detections: A [batch_size] int32 tensor indicating the number of
valid detections per batch item. Only the top num_detections[i] entries in
nms_boxes[i], nms_scores[i] and nms_class[i] are valid. The rest of the
entries are zero paddings.Modifier and Type | Class and Description |
---|---|
static class |
CombinedNonMaxSuppression.Attrs
Optional attribute setters for CombinedNonMaxSuppression
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
CombinedNonMaxSuppression(Pointer p)
Pointer cast constructor.
|
CombinedNonMaxSuppression(Scope scope,
Input boxes,
Input scores,
Input max_output_size_per_class,
Input max_total_size,
Input iou_threshold,
Input score_threshold) |
CombinedNonMaxSuppression(Scope scope,
Input boxes,
Input scores,
Input max_output_size_per_class,
Input max_total_size,
Input iou_threshold,
Input score_threshold,
CombinedNonMaxSuppression.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
static CombinedNonMaxSuppression.Attrs |
ClipBoxes(boolean x) |
Output |
nmsed_boxes() |
CombinedNonMaxSuppression |
nmsed_boxes(Output setter) |
Output |
nmsed_classes() |
CombinedNonMaxSuppression |
nmsed_classes(Output setter) |
Output |
nmsed_scores() |
CombinedNonMaxSuppression |
nmsed_scores(Output setter) |
Operation |
operation() |
CombinedNonMaxSuppression |
operation(Operation setter) |
static CombinedNonMaxSuppression.Attrs |
PadPerClass(boolean x) |
Output |
valid_detections() |
CombinedNonMaxSuppression |
valid_detections(Output setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public CombinedNonMaxSuppression(Pointer p)
Pointer(Pointer)
.public CombinedNonMaxSuppression(@Const @ByRef Scope scope, @ByVal Input boxes, @ByVal Input scores, @ByVal Input max_output_size_per_class, @ByVal Input max_total_size, @ByVal Input iou_threshold, @ByVal Input score_threshold)
public CombinedNonMaxSuppression(@Const @ByRef Scope scope, @ByVal Input boxes, @ByVal Input scores, @ByVal Input max_output_size_per_class, @ByVal Input max_total_size, @ByVal Input iou_threshold, @ByVal Input score_threshold, @Const @ByRef CombinedNonMaxSuppression.Attrs attrs)
@ByVal public static CombinedNonMaxSuppression.Attrs PadPerClass(@Cast(value="bool") boolean x)
@ByVal public static CombinedNonMaxSuppression.Attrs ClipBoxes(@Cast(value="bool") boolean x)
public CombinedNonMaxSuppression operation(Operation setter)
public CombinedNonMaxSuppression nmsed_boxes(Output setter)
public CombinedNonMaxSuppression nmsed_scores(Output setter)
public CombinedNonMaxSuppression nmsed_classes(Output setter)
public CombinedNonMaxSuppression valid_detections(Output setter)
Copyright © 2022. All rights reserved.