Base class for post-processing on inference output.
Definition at line 116 of file nvdsinfer_context_impl.h.
Public Member Functions | |
virtual | ~InferPostprocessor () |
void | setDlHandle (const std::shared_ptr< DlLibHandle > &dlHandle) |
void | setNetworkInfo (const NvDsInferNetworkInfo &info) |
void | setAllLayerInfo (std::vector< NvDsInferBatchDimsLayerInfo > &info) |
void | setOutputLayerInfo (std::vector< NvDsInferBatchDimsLayerInfo > &info) |
void | setLoggingFunc (const NvDsInferLoggingFunc &func) |
const std::vector< std::vector< std::string > > & | getLabels () const |
bool | needInputCopy () const |
bool | needOutputCopyB4Processing () const |
virtual NvDsInferStatus | initResource (const NvDsInferContextInitParams &initParams) |
virtual NvDsInferStatus | copyBuffersToHostMemory (NvDsInferBatch &buffer, CudaStream &mainStream) |
virtual NvDsInferStatus | postProcessHost (NvDsInferBatch &buffer, NvDsInferContextBatchOutput &output) |
void | freeBatchOutput (NvDsInferContextBatchOutput &batchOutput) |
Protected Member Functions | |
InferPostprocessor (NvDsInferNetworkType type, int id, int gpuId) | |
NvDsInferStatus | parseLabelsFile (const std::string &path) |
NvDsInferStatus | allocDeviceResource () |
void | releaseFrameOutput (NvDsInferFrameOutput &frameOutput) |
Protected Attributes | |
NvDsInferNetworkType | m_NetworkType = NvDsInferNetworkType_Other |
int | m_UniqueID = 0 |
uint32_t | m_GpuID = 0 |
NvDsInferLoggingFunc | m_LoggingFunc |
std::shared_ptr< DlLibHandle > | m_CustomLibHandle |
bool | m_CopyInputToHostBuffers = false |
bool | m_disableOutputHostCopy = false |
bool | m_DumpOpTensor = false |
std::vector< std::pair< std::string, std::string > > | m_DumpOpTensorFiles |
bool | m_OverwriteOpTensor = false |
std::vector< std::pair< std::string, int > > | m_OverwriteOpTensorFilePairs |
std::vector< std::ifstream * > | m_OverwriteOpTensorFiles |
NvDsInferNetworkInfo | m_NetworkInfo = {0} |
std::vector< NvDsInferLayerInfo > | m_AllLayerInfo |
std::vector< NvDsInferLayerInfo > | m_OutputLayerInfo |
std::vector< std::vector< std::string > > | m_Labels |
|
inlineprotected |
Definition at line 119 of file nvdsinfer_context_impl.h.
|
virtual |
|
protected |
|
virtual |
void nvdsinfer::InferPostprocessor::freeBatchOutput | ( | NvDsInferContextBatchOutput & | batchOutput | ) |
|
inline |
Definition at line 146 of file nvdsinfer_context_impl.h.
References m_Labels.
|
virtual |
|
inline |
Definition at line 150 of file nvdsinfer_context_impl.h.
References m_CopyInputToHostBuffers.
|
inline |
Definition at line 152 of file nvdsinfer_context_impl.h.
References m_disableOutputHostCopy.
|
protected |
|
virtual |
|
protected |
|
inline |
Definition at line 132 of file nvdsinfer_context_impl.h.
References m_AllLayerInfo.
|
inline |
Definition at line 124 of file nvdsinfer_context_impl.h.
References m_CustomLibHandle.
|
inline |
Definition at line 142 of file nvdsinfer_context_impl.h.
References m_LoggingFunc.
|
inline |
Definition at line 128 of file nvdsinfer_context_impl.h.
References m_NetworkInfo.
|
inline |
Definition at line 137 of file nvdsinfer_context_impl.h.
References m_OutputLayerInfo.
|
protected |
Definition at line 199 of file nvdsinfer_context_impl.h.
Referenced by setAllLayerInfo().
|
protected |
Definition at line 190 of file nvdsinfer_context_impl.h.
Referenced by needInputCopy().
|
protected |
Definition at line 189 of file nvdsinfer_context_impl.h.
Referenced by setDlHandle().
|
protected |
Definition at line 191 of file nvdsinfer_context_impl.h.
Referenced by needOutputCopyB4Processing().
|
protected |
Definition at line 192 of file nvdsinfer_context_impl.h.
|
protected |
Definition at line 193 of file nvdsinfer_context_impl.h.
|
protected |
Definition at line 185 of file nvdsinfer_context_impl.h.
|
protected |
Definition at line 203 of file nvdsinfer_context_impl.h.
Referenced by getLabels().
|
protected |
Definition at line 186 of file nvdsinfer_context_impl.h.
Referenced by setLoggingFunc().
|
protected |
Definition at line 198 of file nvdsinfer_context_impl.h.
Referenced by setNetworkInfo().
|
protected |
Definition at line 182 of file nvdsinfer_context_impl.h.
|
protected |
Definition at line 200 of file nvdsinfer_context_impl.h.
Referenced by setOutputLayerInfo().
|
protected |
Definition at line 194 of file nvdsinfer_context_impl.h.
|
protected |
Definition at line 195 of file nvdsinfer_context_impl.h.
|
protected |
Definition at line 196 of file nvdsinfer_context_impl.h.
|
protected |
Definition at line 184 of file nvdsinfer_context_impl.h.