public class nvinfer_plugin extends nvinfer_plugin
| Modifier and Type | Class and Description |
|---|---|
static class |
nvinfer_plugin.CodeTypeSSD
\enum CodeTypeSSD
\brief The type of encoding used for decoding the bounding boxes and loc_data.
|
| Constructor and Description |
|---|
nvinfer_plugin() |
| Modifier and Type | Method and Description |
|---|---|
static IPluginV2 |
createAnchorGeneratorPlugin(GridAnchorParameters param,
int numLayers)
\brief The Grid Anchor Generator plugin layer generates the prior boxes of
designated sizes and aspect ratios across all dimensions (H x W) for all feature maps.
|
static IPluginV2 |
createBatchedNMSPlugin(NMSParameters param)
\brief The BatchedNMS Plugin performs non_max_suppression on the input boxes, per batch, across all classes.
|
static IPluginV2 |
createInstanceNormalizationPlugin(float epsilon,
Weights scale_weights,
Weights bias_weights)
\brief The Instance Normalization Plugin computes the instance normalization of an input tensor.
|
static IPluginV2 |
createNMSPlugin(DetectionOutputParameters param)
\brief The DetectionOutput plugin layer generates the detection output based on location and confidence
predictions by doing non maximum suppression.
|
static IPluginV2 |
createNormalizePlugin(Weights scales,
boolean acrossSpatial,
boolean channelShared,
float eps)
\brief The Normalize plugin layer normalizes the input to have L2 norm of 1 with scale learnable.
|
static IPluginV2 |
createPriorBoxPlugin(PriorBoxParameters param)
\brief The PriorBox plugin layer generates the prior boxes of designated sizes and aspect ratios across all
dimensions (H x W).
|
static IPluginV2 |
createRegionPlugin(RegionParameters params)
\brief The Region plugin layer performs region proposal calculation: generate 5 bounding boxes per cell (for
yolo9000, generate 3 bounding boxes per cell).
|
static IPluginV2 |
createReorgPlugin(int stride)
\brief The Reorg plugin reshapes input of shape CxHxW into a (C*stride*stride)x(H/stride)x(W/stride) shape, used
in YOLOv2.
|
static IPluginV2 |
createRPNROIPlugin(int featureStride,
int preNmsTop,
int nmsMaxOut,
float iouThreshold,
float minBoxSize,
float spatialScale,
DimsHW pooling,
Weights anchorRatios,
Weights anchorScales)
\brief Create a plugin layer that fuses the RPN and ROI pooling using user-defined parameters.
|
static IPluginV2 |
createSplitPlugin(int axis,
int[] output_lengths,
int noutput) |
static IPluginV2 |
createSplitPlugin(int axis,
IntBuffer output_lengths,
int noutput) |
static IPluginV2 |
createSplitPlugin(int axis,
IntPointer output_lengths,
int noutput)
\brief The Split Plugin performs a split operation on the input tensor.
|
static boolean |
initLibNvInferPlugins(Pointer logger,
BytePointer libNamespace) |
static boolean |
initLibNvInferPlugins(Pointer logger,
String libNamespace)
\brief Initialize and register all the existing TensorRT plugins to the Plugin Registry with an optional
namespace.
|
mappublic static IPluginV2 createRPNROIPlugin(int featureStride, int preNmsTop, int nmsMaxOut, float iouThreshold, float minBoxSize, float spatialScale, @ByVal DimsHW pooling, @ByVal Weights anchorRatios, @ByVal Weights anchorScales)
featureStride - Feature stride.preNmsTop - Number of proposals to keep before applying NMS.nmsMaxOut - Number of remaining proposals after applying NMS.iouThreshold - IoU threshold.minBoxSize - Minimum allowed bounding box size before scaling.spatialScale - Spatial scale between the input image and the last feature map.pooling - Spatial dimensions of pooled ROIs.anchorRatios - Aspect ratios for generating anchor windows.anchorScales - Scales for generating anchor windows.public static IPluginV2 createNormalizePlugin(@Const Weights scales, @Cast(value="bool") boolean acrossSpatial, @Cast(value="bool") boolean channelShared, float eps)
scales - Scale weights that are applied to the output tensor.acrossSpatial - Whether to compute the norm over adjacent channels (acrossSpatial is true) or nearby
spatial locations (within channel in which case acrossSpatial is false).channelShared - Whether the scale weight(s) is shared across channels.eps - Epsilon for not dividing by zero.public static IPluginV2 createPriorBoxPlugin(@ByVal PriorBoxParameters param)
public static IPluginV2 createAnchorGeneratorPlugin(GridAnchorParameters param, int numLayers)
public static IPluginV2 createNMSPlugin(@ByVal DetectionOutputParameters param)
public static IPluginV2 createReorgPlugin(int stride)
stride - Strides in H and W, it should divide both H and W. Also stride * stride should be less than or equal to C.public static IPluginV2 createRegionPlugin(@ByVal RegionParameters params)
public static IPluginV2 createBatchedNMSPlugin(@ByVal NMSParameters param)
plugin->getWorkspaceSize(batchSize).public static IPluginV2 createSplitPlugin(int axis, IntPointer output_lengths, int noutput)
axis - The axis to split on.output_lengths - The lengths of the output tensors.noutput - The number of output tensors.public static IPluginV2 createSplitPlugin(int axis, IntBuffer output_lengths, int noutput)
public static IPluginV2 createSplitPlugin(int axis, int[] output_lengths, int noutput)
public static IPluginV2 createInstanceNormalizationPlugin(float epsilon, @ByVal Weights scale_weights, @ByVal Weights bias_weights)
epsilon - The epsilon value to use to avoid division by zero.scale_weights - The input 1-dimensional scale weights of size C to scale.bias_weights - The input 1-dimensional bias weights of size C to offset.@Cast(value="bool") public static boolean initLibNvInferPlugins(Pointer logger, String libNamespace)
logger - Logger object to print plugin registration informationlibNamespace - Namespace used to register all the plugins in this libraryCopyright © 2022. All rights reserved.