Base class for post-processing on inference output.
Definition at line 117 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 120 of file nvdsinfer_context_impl.h.
|
virtual |
|
protected |
|
virtual |
| void nvdsinfer::InferPostprocessor::freeBatchOutput | ( | NvDsInferContextBatchOutput & | batchOutput | ) |
|
inline |
Definition at line 147 of file nvdsinfer_context_impl.h.
References m_Labels.
|
virtual |
|
inline |
Definition at line 151 of file nvdsinfer_context_impl.h.
References m_CopyInputToHostBuffers.
|
inline |
Definition at line 153 of file nvdsinfer_context_impl.h.
References m_disableOutputHostCopy.
|
protected |
|
virtual |
|
protected |
|
inline |
Definition at line 133 of file nvdsinfer_context_impl.h.
References m_AllLayerInfo.
|
inline |
Definition at line 125 of file nvdsinfer_context_impl.h.
References m_CustomLibHandle.
|
inline |
Definition at line 143 of file nvdsinfer_context_impl.h.
References m_LoggingFunc.
|
inline |
Definition at line 129 of file nvdsinfer_context_impl.h.
References m_NetworkInfo.
|
inline |
Definition at line 138 of file nvdsinfer_context_impl.h.
References m_OutputLayerInfo.
|
protected |
Definition at line 200 of file nvdsinfer_context_impl.h.
Referenced by setAllLayerInfo().
|
protected |
Definition at line 191 of file nvdsinfer_context_impl.h.
Referenced by needInputCopy().
|
protected |
Definition at line 190 of file nvdsinfer_context_impl.h.
Referenced by setDlHandle().
|
protected |
Definition at line 192 of file nvdsinfer_context_impl.h.
Referenced by needOutputCopyB4Processing().
|
protected |
Definition at line 193 of file nvdsinfer_context_impl.h.
|
protected |
Definition at line 194 of file nvdsinfer_context_impl.h.
|
protected |
Definition at line 186 of file nvdsinfer_context_impl.h.
|
protected |
Definition at line 204 of file nvdsinfer_context_impl.h.
Referenced by getLabels().
|
protected |
Definition at line 187 of file nvdsinfer_context_impl.h.
Referenced by setLoggingFunc().
|
protected |
Definition at line 199 of file nvdsinfer_context_impl.h.
Referenced by setNetworkInfo().
|
protected |
Definition at line 183 of file nvdsinfer_context_impl.h.
|
protected |
Definition at line 201 of file nvdsinfer_context_impl.h.
Referenced by setOutputLayerInfo().
|
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 197 of file nvdsinfer_context_impl.h.
|
protected |
Definition at line 185 of file nvdsinfer_context_impl.h.