Traceback (most recent call last):
File "H:/pytorch-yolox-deepsort-main/yolov4_deepsort.py", line 173, in
vdo_trk.run()
File "H:/pytorch-yolox-deepsort-main/yolov4_deepsort.py", line 128, in run
outputs = self.deepsort.update(new_bbox, cls_conf, im)
File "H:\pytorch-yolox-deepsort-main\deep_sort\deep_sort.py", line 40, in update
bbox_tlwh = self._xywh_to_tlwh(bbox_xywh)
File "H:\pytorch-yolox-deepsort-main\deep_sort\deep_sort.py", line 88, in _xywh_to_tlwh
bbox_tlwh = np.zeros((bbox_xywh.shape[0],bbox_xywh.shape[1]))
应该是下面这里当目标丢失后出现问题,请问如何修改?
def _xywh_to_tlwh(bbox_xywh):
if bbox_xywh is not None:
bbox_tlwh = np.zeros((bbox_xywh.shape[0],bbox_xywh.shape[1]))
Traceback (most recent call last): File "H:/pytorch-yolox-deepsort-main/yolov4_deepsort.py", line 173, in
vdo_trk.run()
File "H:/pytorch-yolox-deepsort-main/yolov4_deepsort.py", line 128, in run
outputs = self.deepsort.update(new_bbox, cls_conf, im)
File "H:\pytorch-yolox-deepsort-main\deep_sort\deep_sort.py", line 40, in update
bbox_tlwh = self._xywh_to_tlwh(bbox_xywh)
File "H:\pytorch-yolox-deepsort-main\deep_sort\deep_sort.py", line 88, in _xywh_to_tlwh
bbox_tlwh = np.zeros((bbox_xywh.shape[0],bbox_xywh.shape[1]))
应该是下面这里当目标丢失后出现问题,请问如何修改?
def _xywh_to_tlwh(bbox_xywh):
if bbox_xywh is not None:
bbox_tlwh = np.zeros((bbox_xywh.shape[0],bbox_xywh.shape[1]))