102 #ifndef _NVDSINFER_CUSTOM_IMPL_H_
103 #define _NVDSINFER_CUSTOM_IMPL_H_
107 #include "NvCaffeParser.h"
108 #include "NvUffParser.h"
141 std::vector<NvDsInferLayerInfo>
const &outputLayersInfo,
144 std::vector<NvDsInferObjectDetectionInfo> &objectList);
150 #define CHECK_CUSTOM_PARSE_FUNC_PROTOTYPE(customParseFunc) \
151 static void checkFunc_ ## customParseFunc (NvDsInferParseCustomFunc func = customParseFunc) \
152 { checkFunc_ ## customParseFunc (); }; \
153 extern "C" bool customParseFunc (std::vector<NvDsInferLayerInfo> const &outputLayersInfo, \
154 NvDsInferNetworkInfo const &networkInfo, \
155 NvDsInferParseDetectionParams const &detectionParams, \
156 std::vector<NvDsInferObjectDetectionInfo> &objectList);
171 std::vector<NvDsInferLayerInfo>
const &outputLayersInfo,
173 float classifierThreshold,
174 std::vector<NvDsInferAttribute> &attrList,
175 std::string &descString);
181 #define CHECK_CUSTOM_CLASSIFIER_PARSE_FUNC_PROTOTYPE(customParseFunc) \
182 static void checkFunc_ ## customParseFunc (NvDsInferClassiferParseCustomFunc func = customParseFunc) \
183 { checkFunc_ ## customParseFunc (); }; \
184 extern "C" bool customParseFunc (std::vector<NvDsInferLayerInfo> const &outputLayersInfo, \
185 NvDsInferNetworkInfo const &networkInfo, \
186 float classifierThreshold, \
187 std::vector<NvDsInferAttribute> &attrList, \
188 std::string &descString);
312 unsigned int maxBatchSize);
341 nvinfer1::DataType dataType,
342 nvinfer1::ICudaEngine *& cudaEngine);
nvcaffeparser1::IPluginFactory * pluginFactory
void NvDsInferPluginFactoryRuntimeDestroy(nvinfer1::IPluginFactory *pluginFactory)
Destroy the PluginFactory instance returned in NvDsInferPluginFactoryRuntimeGet
Holds the initialization parameters required for the NvDsInferContext interface.
Holds the detection parameters required for parsing objects.
bool NvDsInferCudaEngineGet(nvinfer1::IBuilder *builder, NvDsInferContextInitParams *initParams, nvinfer1::DataType dataType, nvinfer1::ICudaEngine *&cudaEngine)
Build and return CudaEngine for custom models.
void NvDsInferPluginFactoryUffDestroy(NvDsInferPluginFactoryUff &pluginFactory)
Destroy the Plugin Factory instance returned in NvDsInferPluginFactoryUffGet
nvcaffeparser1::IPluginFactoryExt / nvuffparser::IPluginFactoryExt
bool NvDsInferPluginFactoryRuntimeGet(nvinfer1::IPluginFactory *&pluginFactory)
Returns an instance of a newly allocated Plugin Factory interface to be used during parsing deseriali...
nvcaffeparser1::IPluginFactory / nvuffparser::IPluginFactory
std::vector< float > perClassThreshold
Per class detection confidence threshold.
Copyright (c) 2017-2019, NVIDIA CORPORATION.
NvDsInferPluginFactoryType
Specifies the type of the Plugin Factory.
Holds the pointer to a heap allocated Plugin Factory object required during UFF model parsing...
bool(* NvDsInferParseCustomFunc)(std::vector< NvDsInferLayerInfo > const &outputLayersInfo, NvDsInferNetworkInfo const &networkInfo, NvDsInferParseDetectionParams const &detectionParams, std::vector< NvDsInferObjectDetectionInfo > &objectList)
Function definition for the custom bounding box parsing function.
Holds the pointer to a heap allocated Plugin Factory object required during Caffemodel parsing...
bool NvDsInferPluginFactoryUffGet(NvDsInferPluginFactoryUff &pluginFactory, NvDsInferPluginFactoryType &type)
Returns an instance of a newly allocated Plugin Factory interface to be used during parsing of UFF mo...
unsigned int numClassesConfigured
Number of classes requested to be parsed starting with classID 0.
nvuffparser::IPluginFactoryExt * pluginFactoryExt
bool(* NvDsInferClassiferParseCustomFunc)(std::vector< NvDsInferLayerInfo > const &outputLayersInfo, NvDsInferNetworkInfo const &networkInfo, float classifierThreshold, std::vector< NvDsInferAttribute > &attrList, std::string &descString)
Function definition for the custom classifier output parsing function.
bool NvDsInferInitializeInputLayers(std::vector< NvDsInferLayerInfo > const &inputLayersInfo, NvDsInferNetworkInfo const &networkInfo, unsigned int maxBatchSize)
Initialize the input layers for inference.
Holds information about the model network.
bool NvDsInferPluginFactoryCaffeGet(NvDsInferPluginFactoryCaffe &pluginFactory, NvDsInferPluginFactoryType &type)
Returns an instance of a newly allocated Plugin Factory interface to be used during parsing of caffe ...
nvcaffeparser1::IPluginFactoryExt * pluginFactoryExt
nvuffparser::IPluginFactory * pluginFactory
void NvDsInferPluginFactoryCaffeDestroy(NvDsInferPluginFactoryCaffe &pluginFactory)
Destroy the Plugin Factory instance returned in NvDsInferPluginFactoryCaffeGet
nvcaffeparser1::IPluginFactoryV2 * pluginFactoryV2