|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
18 #ifndef REIDLIB_ENSEMBLEREID_HPP_
19 #define REIDLIB_ENSEMBLEREID_HPP_
21 #include "modules/ReID/IReID.hpp"
22 #include "modules/ReID/ReID.hpp"
23 #include "modules/VisualTracker/IVisualTracker.hpp"
24 #include "modules/NvMultiObjectTracker/NvTrackerParams.hpp"
25 #include "modules/NvMultiObjectTracker/NvTrackedObject.hpp"
51 void read(
const YAML::Node &fn)
override;
81 const std::shared_ptr<NvTrackedObjectManager> &targetManager
100 const std::map<NvMOTStreamId, NvMOTFrame *>& inputMeta,
101 std::map<
NvMOTStreamId, std::deque<DetectedObjInfo>> &detectedObjects,
const bool isForReAssoc
154 const std::map<NvMOTStreamId, NvMOTFrame *>& inputMeta,
155 std::map<
NvMOTStreamId, std::deque<DetectedObjInfo>> &detectedObjects
165 const std::vector<std::vector<float>> & confidenceListReidDets,
const uint numDets
176 #endif // REIDLIB_ENSEMBLEREID_HPP_
const REID_TYPES getReIDType() override
Get the configured ReID implementation type.
int m_enableModelId
The id of the enabled model, -1 is to enable all.
int m_debugVerboseLevel
Debug message verbose mode level.
bool m_isRuntimeInit
Reid status if runtime variables initialized.
int outputTargetReIDInd(NvMOTStreamId streamId, uint targetInd) override
Output a target's ReID vector index in the batch tensor.
REID_TYPES m_reidType
The type of reid.
uint m_maxTargetsPerStream
Max targets per stream.
void initializeModel() override
Create TensorRT inference engine; if engine does not exist, serialize from model file.
void removeStream(const NvMOTStreamId videoStreamId) override
Remove a stream's reid features.
Combines feature extraction from multiple ReID models.
void queryParams(NvMOTQuery ¶msQuery)
Populate the capabilities reported to the tracker.
REID_TYPES
Types of ReID usage.
Holds Reid Vector information for an object.
bool m_isModelInit
Reid status if reid model initialized.
void initializeRuntime(const SourceFrameInfo &frameInfo, const uint maxTargetsPerStream, const std::shared_ptr< NvTrackedObjectManager > &targetManager) override
Initialize variables and allocate memories.
EnsembleReIDConfigParams m_params
Config params for reid module.
std::set< std::string > m_modelNameList
List of reid model names.
void update() override
Update ReID feature gallery after data association.
void read(const YAML::Node &fn) override
Load configuration values from a YAML node.
void outputReIDTensor(NvDsReidTensorBatch &reidTensorBatch) override
Output the ReID tensor of a batch.
Stores configuration for a ReID implementation.
void outputTargetReIDObj(NvMOTStreamId streamId, uint targetInd, NvDsReidTensorBatch &reidTensorBatch, NvDsObjReid &reidObj) override
Output a target's ReID vector information.
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.
EnsembleReIDConfigParams()
Construct a EnsembleReIDConfigParams instance.
Provides common loading helpers for tracker configuration parameters.
std::shared_ptr< NvTrackedObjectManager > m_targetManager
Target manager providing target status to update feature gallery.
virtual ~EnsembleReID()
Release resources owned by the EnsembleReID instance.
Holds the capabilities and requirements reported by the tracker library.
EnsembleReID(const std::string &configFilePath)
Construct a EnsembleReID instance from configuration.
bool isModelInitialized() override
Report whether the inference model is initialized.
Defines the interface for extracting and managing ReID features.
std::vector< float > reidSimilarityFunc(const std::vector< std::vector< float >> &confidenceListReidDets, const uint numDets)
Combine per-model detection similarities into one score vector.
Information about the input source frames for the input frame batch.
bool isRuntimeInitialized() override
Report whether runtime resources are initialized.
std::vector< ReID > m_reidList
List of ensemble methods.
ReID tensor of the batch.
void fuseReIDSimilarity(const std::map< NvMOTStreamId, NvMOTFrame * > &inputMeta, std::map< NvMOTStreamId, std::deque< DetectedObjInfo >> &detectedObjects)
Combine similarity scores produced by the ensemble models.