Fix a bug with batch > 1
Signed-off-by: Davide Sapienza <sapienza.dav@gmail.com>
This commit is contained in:
@@ -148,10 +148,9 @@ private:
|
||||
std::vector<struct detectionRes> det_res;
|
||||
int count_det;
|
||||
//tracks
|
||||
std::vector<struct trackingRes> tr_res;
|
||||
std::vector<std::vector<struct trackingRes>> batchTracked;
|
||||
int count_tr;
|
||||
int track_id=0;
|
||||
std::vector<std::vector<struct trackingRes>> tr_res;
|
||||
std::vector<int> count_tr;
|
||||
std::vector<int> track_id;
|
||||
|
||||
|
||||
bool init_preprocessing();
|
||||
@@ -161,7 +160,7 @@ private:
|
||||
void pre_inf(const int bi);
|
||||
void _get_additional_inputs();
|
||||
cv::Mat transform_preds_with_trans(float x1, float x2);
|
||||
void tracking();
|
||||
void tracking(const int bi);
|
||||
|
||||
public:
|
||||
tk::dnn::Network *pre_phase_net = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user