NVIDIA DeepStream SDK API Reference

4.0.2 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
_NvDsInferContextInitParams Struct Reference

Detailed Description

Holds the initialization parameters required for the NvDsInferContext interface.

Definition at line 206 of file nvdsinfer_context.h.

Collaboration diagram for _NvDsInferContextInitParams:

Data Fields

unsigned int uniqueID
 Unique identifier for the instance. More...
 
NvDsInferNetworkMode networkMode
 Internal data format to be used by the inference engine. More...
 
char protoFilePath [_PATH_MAX]
 Path to the prototxt file. More...
 
char modelFilePath [_PATH_MAX]
 Path to the caffemodel file. More...
 
char uffFilePath [_PATH_MAX]
 Path to the UFF model file. More...
 
char onnxFilePath [_PATH_MAX]
 Path to the ONNX model file. More...
 
char tltEncodedModelFilePath [_PATH_MAX]
 Path to the TLT encoded model file. More...
 
char int8CalibrationFilePath [_PATH_MAX]
 Path to the INT8 calibration file. More...
 
NvDsInferDimsCHW uffDimsCHW
 Input dimensions for the UFF model. More...
 
NvDsInferUffInputOrder uffInputOrder
 Original input order for the UFF model. More...
 
char uffInputBlobName [_MAX_STR_LENGTH]
 Name of the input layer for the UFF model. More...
 
char tltModelKey [_MAX_STR_LENGTH]
 String key for decoding the TLT encoded model. More...
 
char modelEngineFilePath [_PATH_MAX]
 Path to the serialized model engine file. More...
 
unsigned int maxBatchSize
 Max number of frames that will be inferred together in a batch. More...
 
char labelsFilePath [_PATH_MAX]
 Path to the labels file containing strings for the class labels. More...
 
char meanImageFilePath [_PATH_MAX]
 Path to the mean image file (PPM format). More...
 
float networkScaleFactor
 Normalization factor to scale the input pixels with. More...
 
NvDsInferFormat networkInputFormat
 Network input format. More...
 
float offsets [_MAX_CHANNELS]
 Per channel offsets for mean subtraction. More...
 
unsigned int numOffsets
 
NvDsInferNetworkType networkType
 Type of the network. More...
 
int useDBScan
 Boolean indicating if DBScan should be used for object clustering. More...
 
unsigned int numDetectedClasses
 Number of classes detected by a detector network. More...
 
NvDsInferDetectionParamsperClassDetectionParams
 Per class detection parameters. More...
 
float classifierThreshold
 Minimum confidence threshold for classifier to consider a label valid. More...
 
float segmentationThreshold
 
char ** outputLayerNames
 Array of output Layer Names. More...
 
unsigned int numOutputLayers
 
char customLibPath [_PATH_MAX]
 Path to the library containing custom methods required to support the network. More...
 
char customBBoxParseFuncName [_MAX_STR_LENGTH]
 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
 Boolean indicating if input layer contents should be copied to host memories for access in the application. More...
 
unsigned int gpuID
 ID of the GPU to run the inference on. More...
 
int useDLA
 Boolean indicating if DLA should be used. More...
 
int dlaCore
 DLA Core to use. More...
 
unsigned int outputBufferPoolSize
 Number of sets of output buffers (host and device) to be allocated. More...
 
char customNetworkConfigFilePath [_PATH_MAX]
 Path to the config file for custom network creation. More...
 

Field Documentation

float _NvDsInferContextInitParams::classifierThreshold

Minimum confidence threshold for classifier to consider a label valid.

Definition at line 288 of file nvdsinfer_context.h.

int _NvDsInferContextInitParams::copyInputToHostBuffers

Boolean indicating if input layer contents should be copied to host memories for access in the application.

Definition at line 307 of file nvdsinfer_context.h.

char _NvDsInferContextInitParams::customBBoxParseFuncName[_MAX_STR_LENGTH]

Name of the custom bounding box function in the custom library.

Definition at line 300 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 303 of file nvdsinfer_context.h.

char _NvDsInferContextInitParams::customLibPath[_PATH_MAX]

Path to the library containing custom methods required to support the network.

Definition at line 298 of file nvdsinfer_context.h.

char _NvDsInferContextInitParams::customNetworkConfigFilePath[_PATH_MAX]

Path to the config file for custom network creation.

This can be used to store custom properties required by the custom network creation function.

Definition at line 322 of file nvdsinfer_context.h.

int _NvDsInferContextInitParams::dlaCore

DLA Core to use.

Definition at line 315 of file nvdsinfer_context.h.

unsigned int _NvDsInferContextInitParams::gpuID

ID of the GPU to run the inference on.

Definition at line 310 of file nvdsinfer_context.h.

char _NvDsInferContextInitParams::int8CalibrationFilePath[_PATH_MAX]

Path to the INT8 calibration file.

Required only when using INT8 mode.

Definition at line 227 of file nvdsinfer_context.h.

char _NvDsInferContextInitParams::labelsFilePath[_PATH_MAX]

Path to the labels file containing strings for the class labels.

Specifying the labels file is not mandatory. Refer to the custom models section of DeepStreamSDK documentation for the file format.

Definition at line 253 of file nvdsinfer_context.h.

unsigned int _NvDsInferContextInitParams::maxBatchSize

Max number of frames that will be inferred together in a batch.

The number of input frames in a batch should be less than or equal to this number.

Definition at line 247 of file nvdsinfer_context.h.

char _NvDsInferContextInitParams::meanImageFilePath[_PATH_MAX]

Path to the mean image file (PPM format).

Resolution of the file should be equal to the network input resolution.

Definition at line 258 of file nvdsinfer_context.h.

char _NvDsInferContextInitParams::modelEngineFilePath[_PATH_MAX]

Path to the serialized model engine file.

When using model engine file, other parameters required for creating the model engine are ignored.

Definition at line 242 of file nvdsinfer_context.h.

char _NvDsInferContextInitParams::modelFilePath[_PATH_MAX]

Path to the caffemodel file.

Definition at line 218 of file nvdsinfer_context.h.

NvDsInferFormat _NvDsInferContextInitParams::networkInputFormat

Network input format.

Definition at line 264 of file nvdsinfer_context.h.

NvDsInferNetworkMode _NvDsInferContextInitParams::networkMode

Internal data format to be used by the inference engine.

Definition at line 213 of file nvdsinfer_context.h.

float _NvDsInferContextInitParams::networkScaleFactor

Normalization factor to scale the input pixels with.

Definition at line 261 of file nvdsinfer_context.h.

NvDsInferNetworkType _NvDsInferContextInitParams::networkType

Type of the network.

Definition at line 274 of file nvdsinfer_context.h.

unsigned int _NvDsInferContextInitParams::numDetectedClasses

Number of classes detected by a detector network.

Definition at line 281 of file nvdsinfer_context.h.

unsigned int _NvDsInferContextInitParams::numOffsets

Definition at line 271 of file nvdsinfer_context.h.

unsigned int _NvDsInferContextInitParams::numOutputLayers

Definition at line 294 of file nvdsinfer_context.h.

float _NvDsInferContextInitParams::offsets[_MAX_CHANNELS]

Per channel offsets for mean subtraction.

This is an alternative to the mean image file. The number of offsets in the array should be exactly equalto the number of input channels.

Definition at line 270 of file nvdsinfer_context.h.

char _NvDsInferContextInitParams::onnxFilePath[_PATH_MAX]

Path to the ONNX model file.

Definition at line 222 of file nvdsinfer_context.h.

unsigned int _NvDsInferContextInitParams::outputBufferPoolSize

Number of sets of output buffers (host and device) to be allocated.

Definition at line 318 of file nvdsinfer_context.h.

char** _NvDsInferContextInitParams::outputLayerNames

Array of output Layer Names.

Definition at line 293 of file nvdsinfer_context.h.

NvDsInferDetectionParams* _NvDsInferContextInitParams::perClassDetectionParams

Per class detection parameters.

The size of the array should be equal to numDetectedClasses.

Definition at line 285 of file nvdsinfer_context.h.

char _NvDsInferContextInitParams::protoFilePath[_PATH_MAX]

Path to the prototxt file.

Definition at line 216 of file nvdsinfer_context.h.

float _NvDsInferContextInitParams::segmentationThreshold

Definition at line 290 of file nvdsinfer_context.h.

char _NvDsInferContextInitParams::tltEncodedModelFilePath[_PATH_MAX]

Path to the TLT encoded model file.

Definition at line 224 of file nvdsinfer_context.h.

char _NvDsInferContextInitParams::tltModelKey[_MAX_STR_LENGTH]

String key for decoding the TLT encoded model.

Definition at line 237 of file nvdsinfer_context.h.

NvDsInferDimsCHW _NvDsInferContextInitParams::uffDimsCHW

Input dimensions for the UFF model.

Definition at line 230 of file nvdsinfer_context.h.

char _NvDsInferContextInitParams::uffFilePath[_PATH_MAX]

Path to the UFF model file.

Definition at line 220 of file nvdsinfer_context.h.

char _NvDsInferContextInitParams::uffInputBlobName[_MAX_STR_LENGTH]

Name of the input layer for the UFF model.

Definition at line 234 of file nvdsinfer_context.h.

NvDsInferUffInputOrder _NvDsInferContextInitParams::uffInputOrder

Original input order for the UFF model.

Definition at line 232 of file nvdsinfer_context.h.

unsigned int _NvDsInferContextInitParams::uniqueID

Unique identifier for the instance.

This can be used to identify the instance generating log and error messages.

Definition at line 210 of file nvdsinfer_context.h.

int _NvDsInferContextInitParams::useDBScan

Boolean indicating if DBScan should be used for object clustering.

OpenCV groupRectangles will be used if set to false.

Definition at line 278 of file nvdsinfer_context.h.

int _NvDsInferContextInitParams::useDLA

Boolean indicating if DLA should be used.

Definition at line 313 of file nvdsinfer_context.h.


The documentation for this struct was generated from the following file: