open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark

Home Page:https://mmdetection.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bbox_overlaps error

zhaozhen2333 opened this issue · comments

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]]))

from mmdet.structures.bbox import bbox_overlaps