NVIDIA DeepStream SDK API Reference6.1.1 Release |
Holds the initialization parameters required for the NvDsInferContext interface.
Definition at line 233 of file nvdsinfer_context.h.
Data Fields | |
unsigned int | uniqueID |
Holds a unique identifier for the instance. More... | |
NvDsInferNetworkMode | networkMode |
Holds an internal data format specifier used by the inference engine. More... | |
char | protoFilePath [_PATH_MAX] |
Holds the pathname of the prototxt file. More... | |
char | modelFilePath [_PATH_MAX] |
Holds the pathname of the caffemodel file. More... | |
char | uffFilePath [_PATH_MAX] |
Holds the pathname of the UFF model file. More... | |
char | onnxFilePath [_PATH_MAX] |
Holds the pathname of the ONNX model file. More... | |
char | tltEncodedModelFilePath [_PATH_MAX] |
Holds the pathname of the TLT encoded model file. More... | |
char | int8CalibrationFilePath [_PATH_MAX] |
Holds the pathname of the INT8 calibration file. More... | |
union { | |
NvDsInferDimsCHW inputDims | |
Holds the input dimensions for the model. More... | |
NvDsInferDimsCHW uffDimsCHW | |
Holds the input dimensions for the UFF model. More... | |
} | instead |
NvDsInferTensorOrder | uffInputOrder |
Holds the original input order for the UFF model. More... | |
char | uffInputBlobName [_MAX_STR_LENGTH] |
Holds the name of the input layer for the UFF model. More... | |
NvDsInferTensorOrder | netInputOrder |
Holds the original input order for the network. More... | |
char | tltModelKey [_MAX_STR_LENGTH] |
Holds the string key for decoding the TLT encoded model. More... | |
char | modelEngineFilePath [_PATH_MAX] |
Holds the pathname of the serialized model engine file. More... | |
unsigned int | maxBatchSize |
Holds the maximum number of frames to be inferred together in a batch. More... | |
char | labelsFilePath [_PATH_MAX] |
Holds the pathname of the labels file containing strings for the class labels. More... | |
char | meanImageFilePath [_PATH_MAX] |
Holds the pathname of the mean image file (PPM format). More... | |
float | networkScaleFactor |
Holds the normalization factor with which to scale the input pixels. More... | |
NvDsInferFormat | networkInputFormat |
Holds the network input format. More... | |
float | offsets [_MAX_CHANNELS] |
Holds the per-channel offsets for mean subtraction. More... | |
unsigned int | numOffsets |
NvDsInferNetworkType | networkType |
Holds the network type. More... | |
Use NvDsInferClusterMode instead int | useDBScan |
Holds a Boolean; true if DBScan is to be used for object clustering, or false if OpenCV groupRectangles is to be used. More... | |
unsigned int | numDetectedClasses |
Holds the number of classes detected by a detector network. More... | |
NvDsInferDetectionParams * | perClassDetectionParams |
Holds per-class detection parameters. More... | |
float | classifierThreshold |
Holds the minimum confidence threshold for the classifier to consider a label valid. More... | |
float | segmentationThreshold |
char ** | outputLayerNames |
Holds a pointer to an array of pointers to output layer names. More... | |
unsigned int | numOutputLayers |
Holds the number of output layer names. More... | |
char | customLibPath [_PATH_MAX] |
Holds the pathname of the library containing custom methods required to support the network. More... | |
char | customBBoxParseFuncName [_MAX_STR_LENGTH] |
Holds the name of the custom bounding box function in the custom library. More... | |
char | customClassifierParseFuncName [_MAX_STR_LENGTH] |
Name of the custom classifier attribute parsing function in the custom library. More... | |
int | copyInputToHostBuffers |
Holds a Boolean; true if the input layer contents are to be copied to host memory for access by the application. More... | |
unsigned int | gpuID |
Holds the ID of the GPU which is to run the inference. More... | |
int | useDLA |
Holds a Boolean; true if DLA is to be used. More... | |
int | dlaCore |
Holds the ID of the DLA core to use. More... | |
unsigned int | outputBufferPoolSize |
Holds the number of sets of output buffers (host and device) to be allocated. More... | |
char | customNetworkConfigFilePath [_PATH_MAX] |
Holds the pathname of the configuration file for custom network creation. More... | |
char | customEngineCreateFuncName [_MAX_STR_LENGTH] |
Name of the custom engine creation function in the custom library. More... | |
int | forceImplicitBatchDimension |
For model parsers supporting both implicit batch dim and full dims, prefer to use implicit batch dim. More... | |
unsigned int | workspaceSize |
Max workspace size (unit MB) that will be used as tensorrt build settings for cuda engine. More... | |
NvDsInferDimsCHW | inferInputDims |
Inference input dimensions for runtime engine. More... | |
NvDsInferClusterMode | clusterMode |
Holds the type of clustering mode. More... | |
char | customBBoxInstanceMaskParseFuncName [_MAX_STR_LENGTH] |
Holds the name of the bounding box and instance mask parse function in the custom library. More... | |
char ** | outputIOFormats |
Can be used to specify the format and datatype for bound output layers. More... | |
unsigned int | numOutputIOFormats |
Holds number of output IO formats specified. More... | |
char ** | layerDevicePrecisions |
Can be used to specify the device type and inference precision of layers. More... | |
unsigned int | numLayerDevicePrecisions |
Holds number of layer device precisions specified. More... | |
NvDsInferTensorOrder | segmentationOutputOrder |
Holds output order for segmentation network. More... | |
int | inputFromPreprocessedTensor |
Boolean flag indicating that caller will supply preprocessed tensors for inferencing. More... | |
float _NvDsInferContextInitParams::classifierThreshold |
Holds the minimum confidence threshold for the classifier to consider a label valid.
Definition at line 323 of file nvdsinfer_context.h.
NvDsInferClusterMode _NvDsInferContextInitParams::clusterMode |
Holds the type of clustering mode.
Definition at line 381 of file nvdsinfer_context.h.
int _NvDsInferContextInitParams::copyInputToHostBuffers |
Holds a Boolean; true if the input layer contents are to be copied to host memory for access by the application.
Definition at line 345 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::customBBoxInstanceMaskParseFuncName[_MAX_STR_LENGTH] |
Holds the name of the bounding box and instance mask parse function in the custom library.
Definition at line 385 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::customBBoxParseFuncName[_MAX_STR_LENGTH] |
Holds the name of the custom bounding box function in the custom library.
Definition at line 338 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::customClassifierParseFuncName[_MAX_STR_LENGTH] |
Name of the custom classifier attribute parsing function in the custom library.
Definition at line 341 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::customEngineCreateFuncName[_MAX_STR_LENGTH] |
Name of the custom engine creation function in the custom library.
Definition at line 365 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::customLibPath[_PATH_MAX] |
Holds the pathname of the library containing custom methods required to support the network.
Definition at line 335 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::customNetworkConfigFilePath[_PATH_MAX] |
Holds the pathname of the configuration file for custom network creation.
This can be used to store custom properties required by the custom network creation function.
Definition at line 362 of file nvdsinfer_context.h.
int _NvDsInferContextInitParams::dlaCore |
Holds the ID of the DLA core to use.
Definition at line 353 of file nvdsinfer_context.h.
int _NvDsInferContextInitParams::forceImplicitBatchDimension |
For model parsers supporting both implicit batch dim and full dims, prefer to use implicit batch dim.
By default, full dims network mode is used.
Definition at line 370 of file nvdsinfer_context.h.
unsigned int _NvDsInferContextInitParams::gpuID |
Holds the ID of the GPU which is to run the inference.
Definition at line 348 of file nvdsinfer_context.h.
NvDsInferDimsCHW _NvDsInferContextInitParams::inferInputDims |
Inference input dimensions for runtime engine.
Definition at line 378 of file nvdsinfer_context.h.
NvDsInferDimsCHW _NvDsInferContextInitParams::inputDims |
Holds the input dimensions for the model.
Definition at line 259 of file nvdsinfer_context.h.
int _NvDsInferContextInitParams::inputFromPreprocessedTensor |
Boolean flag indicating that caller will supply preprocessed tensors for inferencing.
NvDsInferContext will skip preprocessing initialization steps and will not interpret network input layer dimensions.
Definition at line 408 of file nvdsinfer_context.h.
union { ... } Use inferInputDims _NvDsInferContextInitParams::instead |
Definition at line 257 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::int8CalibrationFilePath[_PATH_MAX] |
Holds the pathname of the INT8 calibration file.
Required only when using INT8 mode.
Definition at line 255 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::labelsFilePath[_PATH_MAX] |
Holds the pathname of the labels file containing strings for the class labels.
The labels file is optional. The file format is described in the custom models section of the DeepStream SDK documentation.
Definition at line 288 of file nvdsinfer_context.h.
char** _NvDsInferContextInitParams::layerDevicePrecisions |
Can be used to specify the device type and inference precision of layers.
For each layer specified the format is "<layer-name>:<device-type>:<precision>"
Definition at line 397 of file nvdsinfer_context.h.
unsigned int _NvDsInferContextInitParams::maxBatchSize |
Holds the maximum number of frames to be inferred together in a batch.
The number of input frames in a batch must be less than or equal to this.
Definition at line 283 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::meanImageFilePath[_PATH_MAX] |
Holds the pathname of the mean image file (PPM format).
File resolution must be equal to the network input resolution.
Definition at line 292 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::modelEngineFilePath[_PATH_MAX] |
Holds the pathname of the serialized model engine file.
When using the model engine file, other parameters required for creating the model engine are ignored.
Definition at line 278 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::modelFilePath[_PATH_MAX] |
Holds the pathname of the caffemodel file.
Definition at line 245 of file nvdsinfer_context.h.
NvDsInferTensorOrder _NvDsInferContextInitParams::netInputOrder |
Holds the original input order for the network.
Definition at line 270 of file nvdsinfer_context.h.
NvDsInferFormat _NvDsInferContextInitParams::networkInputFormat |
Holds the network input format.
Definition at line 298 of file nvdsinfer_context.h.
NvDsInferNetworkMode _NvDsInferContextInitParams::networkMode |
Holds an internal data format specifier used by the inference engine.
Definition at line 240 of file nvdsinfer_context.h.
float _NvDsInferContextInitParams::networkScaleFactor |
Holds the normalization factor with which to scale the input pixels.
Definition at line 295 of file nvdsinfer_context.h.
NvDsInferNetworkType _NvDsInferContextInitParams::networkType |
Holds the network type.
Definition at line 307 of file nvdsinfer_context.h.
unsigned int _NvDsInferContextInitParams::numDetectedClasses |
Holds the number of classes detected by a detector network.
Definition at line 315 of file nvdsinfer_context.h.
unsigned int _NvDsInferContextInitParams::numLayerDevicePrecisions |
Holds number of layer device precisions specified.
Definition at line 399 of file nvdsinfer_context.h.
unsigned int _NvDsInferContextInitParams::numOffsets |
Definition at line 304 of file nvdsinfer_context.h.
unsigned int _NvDsInferContextInitParams::numOutputIOFormats |
Holds number of output IO formats specified.
Definition at line 392 of file nvdsinfer_context.h.
unsigned int _NvDsInferContextInitParams::numOutputLayers |
Holds the number of output layer names.
Definition at line 330 of file nvdsinfer_context.h.
float _NvDsInferContextInitParams::offsets[_MAX_CHANNELS] |
Holds the per-channel offsets for mean subtraction.
This is an alternative to the mean image file. The number of offsets in the array must be equal to the number of input channels.
Definition at line 303 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::onnxFilePath[_PATH_MAX] |
Holds the pathname of the ONNX model file.
Definition at line 249 of file nvdsinfer_context.h.
unsigned int _NvDsInferContextInitParams::outputBufferPoolSize |
Holds the number of sets of output buffers (host and device) to be allocated.
Definition at line 357 of file nvdsinfer_context.h.
char** _NvDsInferContextInitParams::outputIOFormats |
Can be used to specify the format and datatype for bound output layers.
For each layer specified the format is "<layer-name>:<data-type>:<format>"
Definition at line 390 of file nvdsinfer_context.h.
char** _NvDsInferContextInitParams::outputLayerNames |
Holds a pointer to an array of pointers to output layer names.
Definition at line 328 of file nvdsinfer_context.h.
NvDsInferDetectionParams* _NvDsInferContextInitParams::perClassDetectionParams |
Holds per-class detection parameters.
The array's size must be equal to numDetectedClasses.
Definition at line 319 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::protoFilePath[_PATH_MAX] |
Holds the pathname of the prototxt file.
Definition at line 243 of file nvdsinfer_context.h.
NvDsInferTensorOrder _NvDsInferContextInitParams::segmentationOutputOrder |
Holds output order for segmentation network.
Definition at line 402 of file nvdsinfer_context.h.
float _NvDsInferContextInitParams::segmentationThreshold |
Definition at line 325 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::tltEncodedModelFilePath[_PATH_MAX] |
Holds the pathname of the TLT encoded model file.
Definition at line 251 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::tltModelKey[_MAX_STR_LENGTH] |
Holds the string key for decoding the TLT encoded model.
Definition at line 273 of file nvdsinfer_context.h.
NvDsInferDimsCHW _NvDsInferContextInitParams::uffDimsCHW |
Holds the input dimensions for the UFF model.
Definition at line 261 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::uffFilePath[_PATH_MAX] |
Holds the pathname of the UFF model file.
Definition at line 247 of file nvdsinfer_context.h.
char _NvDsInferContextInitParams::uffInputBlobName[_MAX_STR_LENGTH] |
Holds the name of the input layer for the UFF model.
Definition at line 267 of file nvdsinfer_context.h.
NvDsInferTensorOrder _NvDsInferContextInitParams::uffInputOrder |
Holds the original input order for the UFF model.
Definition at line 265 of file nvdsinfer_context.h.
unsigned int _NvDsInferContextInitParams::uniqueID |
Holds a unique identifier for the instance.
This can be used to identify the instance that is generating log and error messages.
Definition at line 237 of file nvdsinfer_context.h.
Use NvDsInferClusterMode instead int _NvDsInferContextInitParams::useDBScan |
Holds a Boolean; true if DBScan is to be used for object clustering, or false if OpenCV groupRectangles is to be used.
Definition at line 312 of file nvdsinfer_context.h.
int _NvDsInferContextInitParams::useDLA |
Holds a Boolean; true if DLA is to be used.
Definition at line 351 of file nvdsinfer_context.h.
unsigned int _NvDsInferContextInitParams::workspaceSize |
Max workspace size (unit MB) that will be used as tensorrt build settings for cuda engine.
Definition at line 375 of file nvdsinfer_context.h.