Skip to content

Error in iou_batches  #182

@daonam2202ntg

Description

@daonam2202ntg

I got this error while running, please help me

Traceback (most recent call last):
File "D:\License_plate_pycharm\License_plate_project\pythonProject6\main.py", line 39, in
track_ids = mot_tracker.update(np.asarray(detections_))
File "D:\License_plate_pycharm\License_plate_project\pythonProject6\sort\sort.py", line 233, in update
matched, unmatched_dets, unmatched_trks = associate_detections_to_trackers(dets,trks, self.iou_threshold)
File "D:\License_plate_pycharm\License_plate_project\pythonProject6\sort\sort.py", line 164, in associate_detections_to_trackers
iou_matrix = iou_batch(detections, trackers)
File "D:\License_plate_pycharm\License_plate_project\pythonProject6\sort\sort.py", line 56, in iou_batch
yy1 = np.maximum(bb_test[..., 1], bb_gt[..., 1])
IndexError: index 1 is out of bounds for axis 1 with size 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions