From e23725ca4c74f9e723a0cb2e6f3d437c8fd4321d Mon Sep 17 00:00:00 2001 From: George Ni Date: Fri, 30 Jul 2021 20:20:58 +0800 Subject: [PATCH] [cherry-pick] fix mot pose unite deploy cpu mkldnn (#3842) --- deploy/python/mot_jde_infer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/python/mot_jde_infer.py b/deploy/python/mot_jde_infer.py index d35a39629..584fcb384 100644 --- a/deploy/python/mot_jde_infer.py +++ b/deploy/python/mot_jde_infer.py @@ -91,6 +91,8 @@ class JDE_Detector(Detector): def postprocess(self, pred_dets, pred_embs, threshold): online_targets = self.tracker.update(pred_dets, pred_embs) + if online_targets == []: + return [pred_dets[0][:4]], [pred_dets[0][4]], [1] online_tlwhs, online_ids = [], [] online_scores = [] for t in online_targets: -- GitLab