Moule Lin
← All notes

GeneralizedRCNN Resize

GenerlizedRCNN


boxes1 # shape[N,4]
boxes2 # shape[M,4]

    lt = torch.max(boxes1[:, None, :2], boxes2[:, :2])  # left-top [N,M,2]
    rb = torch.min(boxes1[:, None, 2:], boxes2[:, 2:])  # right-bottom [N,M,2]