Combines feature extraction from multiple ReID models.
Definition at line 60 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/EnsembleReID.hpp.


Public Member Functions | |
| EnsembleReID (const std::string &configFilePath) | |
| Construct a EnsembleReID instance from configuration. More... | |
| virtual | ~EnsembleReID () |
| Release resources owned by the EnsembleReID instance. More... | |
| void | initializeRuntime (const SourceFrameInfo &frameInfo, const uint maxTargetsPerStream, const std::shared_ptr< NvTrackedObjectManager > &targetManager) override |
| Initialize variables and allocate memories. More... | |
| void | initializeModel () override |
| Create TensorRT inference engine; if engine does not exist, serialize from model file. More... | |
| void | queryParams (NvMOTQuery ¶msQuery) |
| Populate the capabilities reported to the tracker. More... | |
| void | doInference (const std::map< NvMOTStreamId, NvMOTFrame * > &inputMeta, std::map< NvMOTStreamId, std::deque< DetectedObjInfo >> &detectedObjects, const bool isForReAssoc) override |
| Crop and rescale detected objects to create input batch to reid model. More... | |
| void | update () override |
| Update ReID feature gallery after data association. More... | |
| void | removeStream (const NvMOTStreamId videoStreamId) override |
| Remove a stream's reid features. More... | |
| void | outputReIDTensor (NvDsReidTensorBatch &reidTensorBatch) override |
| Output the ReID tensor of a batch. More... | |
| int | outputTargetReIDInd (NvMOTStreamId streamId, uint targetInd) override |
| Output a target's ReID vector index in the batch tensor. More... | |
| void | outputTargetReIDObj (NvMOTStreamId streamId, uint targetInd, NvDsReidTensorBatch &reidTensorBatch, NvDsObjReid &reidObj) override |
| Output a target's ReID vector information. More... | |
| bool | isModelInitialized () override |
| Report whether the inference model is initialized. More... | |
| bool | isRuntimeInitialized () override |
| Report whether runtime resources are initialized. More... | |
| const REID_TYPES | getReIDType () override |
| Get the configured ReID implementation type. More... | |
| EnsembleReID (const std::string &configFilePath) | |
| Construct a EnsembleReID instance from configuration. More... | |
| virtual | ~EnsembleReID () |
| Release resources owned by the EnsembleReID instance. More... | |
| void | initializeRuntime (const SourceFrameInfo &frameInfo, const uint maxTargetsPerStream, const std::shared_ptr< NvTrackedObjectManager > &targetManager) override |
| Initialize variables and allocate memories. More... | |
| void | initializeModel () override |
| Create TensorRT inference engine; if engine does not exist, serialize from model file. More... | |
| void | queryParams (NvMOTQuery ¶msQuery) |
| Populate the capabilities reported to the tracker. More... | |
| void | doInference (const std::map< NvMOTStreamId, NvMOTFrame * > &inputMeta, std::map< NvMOTStreamId, std::deque< DetectedObjInfo >> &detectedObjects, const bool isForReAssoc) override |
| Crop and rescale detected objects to create input batch to reid model. More... | |
| void | update () override |
| Update ReID feature gallery after data association. More... | |
| void | removeStream (const NvMOTStreamId videoStreamId) override |
| Remove a stream's reid features. More... | |
| void | outputReIDTensor (NvDsReidTensorBatch &reidTensorBatch) override |
| Output the ReID tensor of a batch. More... | |
| int | outputTargetReIDInd (NvMOTStreamId streamId, uint targetInd) override |
| Output a target's ReID vector index in the batch tensor. More... | |
| void | outputTargetReIDObj (NvMOTStreamId streamId, uint targetInd, NvDsReidTensorBatch &reidTensorBatch, NvDsObjReid &reidObj) override |
| Output a target's ReID vector information. More... | |
| bool | isModelInitialized () override |
| Report whether the inference model is initialized. More... | |
| bool | isRuntimeInitialized () override |
| Report whether runtime resources are initialized. More... | |
| const REID_TYPES | getReIDType () override |
| Get the configured ReID implementation type. More... | |
Protected Member Functions | |
| void | fuseReIDSimilarity (const std::map< NvMOTStreamId, NvMOTFrame * > &inputMeta, std::map< NvMOTStreamId, std::deque< DetectedObjInfo >> &detectedObjects) |
| Combine similarity scores produced by the ensemble models. More... | |
| std::vector< float > | reidSimilarityFunc (const std::vector< std::vector< float >> &confidenceListReidDets, const uint numDets) |
| Combine per-model detection similarities into one score vector. More... | |
| void | fuseReIDSimilarity (const std::map< NvMOTStreamId, NvMOTFrame * > &inputMeta, std::map< NvMOTStreamId, std::deque< DetectedObjInfo >> &detectedObjects) |
| Combine similarity scores produced by the ensemble models. More... | |
| std::vector< float > | reidSimilarityFunc (const std::vector< std::vector< float >> &confidenceListReidDets, const uint numDets) |
| Combine per-model detection similarities into one score vector. More... | |
Protected Attributes | |
| bool | m_isModelInit |
| Reid status if reid model initialized. More... | |
| bool | m_isRuntimeInit |
| Reid status if runtime variables initialized. More... | |
| EnsembleReIDConfigParams | m_params |
| Config params for reid module. More... | |
| std::vector< ReID > | m_reidList |
| List of ensemble methods. More... | |
| std::shared_ptr< NvTrackedObjectManager > | m_targetManager |
| Target manager providing target status to update feature gallery. More... | |
| uint | m_maxTargetsPerStream |
| Max targets per stream. More... | |
| EnsembleReID::EnsembleReID | ( | const std::string & | configFilePath | ) |
Construct a EnsembleReID instance from configuration.
| [in] | configFilePath | Path to the tracker configuration file. |
|
virtual |
Release resources owned by the EnsembleReID instance.
| EnsembleReID::EnsembleReID | ( | const std::string & | configFilePath | ) |
Construct a EnsembleReID instance from configuration.
| [in] | configFilePath | Path to the tracker configuration file. |
|
virtual |
Release resources owned by the EnsembleReID instance.
|
overridevirtual |
Crop and rescale detected objects to create input batch to reid model.
| [in] | inputMeta | A batch of input frames. |
| [in,out] | detectedObjects | Newly detected objects in each stream. |
| [in] | isForReAssoc | Whether this inference is for reassociation. |
Implements IReID.
|
overridevirtual |
Crop and rescale detected objects to create input batch to reid model.
| [in] | inputMeta | A batch of input frames. |
| [in,out] | detectedObjects | Newly detected objects in each stream. |
| [in] | isForReAssoc | Whether this inference is for reassociation. |
Implements IReID.
|
protected |
Combine similarity scores produced by the ensemble models.
| [in] | inputMeta | Input frames keyed by stream ID. |
| [in,out] | detectedObjects | Detected objects keyed by stream ID. |
|
protected |
Combine similarity scores produced by the ensemble models.
| [in] | inputMeta | Input frames keyed by stream ID. |
| [in,out] | detectedObjects | Detected objects keyed by stream ID. |
|
inlineoverridevirtual |
Get the configured ReID implementation type.
Implements IReID.
Definition at line 145 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/ReID/EnsembleReID.hpp.
References m_params, and EnsembleReIDConfigParams::m_reidType.
|
inlineoverridevirtual |
Get the configured ReID implementation type.
Implements IReID.
Definition at line 145 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/EnsembleReID.hpp.
References m_params, and EnsembleReIDConfigParams::m_reidType.
|
overridevirtual |
Create TensorRT inference engine; if engine does not exist, serialize from model file.
Implements IReID.
|
overridevirtual |
Create TensorRT inference engine; if engine does not exist, serialize from model file.
Implements IReID.
|
overridevirtual |
Initialize variables and allocate memories.
| [in] | frameInfo | Metadata about the source image, such as size and color. |
| [in] | maxTargetsPerStream | Maximum number of targets to track in each stream. |
| [in] | targetManager | Target manager of the tracked objects. |
Implements IReID.
|
overridevirtual |
Initialize variables and allocate memories.
| [in] | frameInfo | Metadata about the source image, such as size and color. |
| [in] | maxTargetsPerStream | Maximum number of targets to track in each stream. |
| [in] | targetManager | Target manager of the tracked objects. |
Implements IReID.
|
inlineoverridevirtual |
Report whether the inference model is initialized.
Implements IReID.
Definition at line 139 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/EnsembleReID.hpp.
References m_isModelInit.
|
inlineoverridevirtual |
Report whether the inference model is initialized.
Implements IReID.
Definition at line 139 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/ReID/EnsembleReID.hpp.
References m_isModelInit.
|
inlineoverridevirtual |
Report whether runtime resources are initialized.
Implements IReID.
Definition at line 142 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/EnsembleReID.hpp.
References m_isRuntimeInit.
|
inlineoverridevirtual |
Report whether runtime resources are initialized.
Implements IReID.
Definition at line 142 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/ReID/EnsembleReID.hpp.
References m_isRuntimeInit.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
virtual |
Populate the capabilities reported to the tracker.
| [out] | paramsQuery | The output query parameters. |
Implements IReID.
|
virtual |
Populate the capabilities reported to the tracker.
| [out] | paramsQuery | The output query parameters. |
Implements IReID.
|
protected |
Combine per-model detection similarities into one score vector.
| [in] | confidenceListReidDets | Per-model ReID similarity values for detections. |
| [in] | numDets | Number of detections. |
|
protected |
Combine per-model detection similarities into one score vector.
| [in] | confidenceListReidDets | Per-model ReID similarity values for detections. |
| [in] | numDets | Number of detections. |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
protected |
Reid status if reid model initialized.
Definition at line 168 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/EnsembleReID.hpp.
Referenced by isModelInitialized().
|
protected |
Reid status if runtime variables initialized.
Definition at line 169 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/EnsembleReID.hpp.
Referenced by isRuntimeInitialized().
|
protected |
Max targets per stream.
Definition at line 173 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/EnsembleReID.hpp.
|
protected |
Config params for reid module.
Definition at line 170 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/EnsembleReID.hpp.
Referenced by getReIDType().
|
protected |
List of ensemble methods.
Definition at line 171 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/EnsembleReID.hpp.
|
protected |
Target manager providing target status to update feature gallery.
Definition at line 172 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/EnsembleReID.hpp.