open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
29.22k stars 9.4k forks source link

bbox_overlaps error #11698

Open zhaozhen2333 opened 4 months ago

zhaozhen2333 commented 4 months ago

pred_bbox = torch.tensor([[0.3491, 1.1030, 5.3415, -0.9908]]) ego_bbox = torch.tensor([[-0.9, 1.0, 2.1, -1.0]]) overlaps = bbox_overlaps(pred_bbox, ego_bbox)

I got the result (tensor([[0]]))

zhaozhen2333 commented 4 months ago

from mmdet.structures.bbox import bbox_overlaps