Functiongeneralized_box_iou Generalized IoU from https://giou.stanford.edu/ The boxes should be in [x0, y0, x1, y1] format Returns a [N, M] pairwise matrix, where
groundingdino/util/box_ops.py:39
Functionget_expected_points_from_mapget_gaussian_map_from_points B,C,H,W -> B,N,2 float(0, 1) float(0, 1) softargmax function Args: hm (float): Input images(
groundingdino/util/utils.py:200
Functionrenorm(
img: torch.FloatTensor, mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]
)
groundingdino/util/utils.py:38