Skip to content

IndexError: index 1 is out of bounds for axis 1 with size 1 #7

@xdTAGCLAN

Description

@xdTAGCLAN

When executing main.py, it works for a while
(0: 384x640 1 license_plate, 133.0ms
Speed: 4.5ms preprocess, 133.0ms inference, 2.5ms postprocess per image at shape (1, 3, 640, 640)

But eventually I get this error:
0: 384x640 (no detections), 90.0ms
Speed: 3.5ms preprocess, 90.0ms inference, 1.0ms postprocess per image at shape (1, 3, 640, 640)
Traceback (most recent call last):
File "C:\Users.....\Downloads\Plate Recognizer\main.py", line 39, in
track_ids = mot_tracker.update(np.asarray(detections_))
File "C:\Users.....\Downloads\Plate Recognizer\sort\sort.py", line 232, in update
matched, unmatched_dets, unmatched_trks = associate_detections_to_trackers(dets,trks, self.iou_threshold)
File "C:\Users.....\Downloads\Plate Recognizer\sort\sort.py", line 163, in associate_detections_to_trackers
iou_matrix = iou_batch(detections, trackers)
File "C:\Users.....\Downloads\Plate Recognizer\sort\sort.py", line 55, 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