def apply_boxes_paddle(self,
                           boxes: paddle.Tensor,
                           original_size: Tuple[int, ...]) -> paddle.Tensor:
        """
        Expects a paddle tensor with shape Bx4. Requires the original image
        size in (H, W) format.
        """
        boxes = self.apply_coords_paddle(
            boxes.reshape([-1, 2, 2]), original_size)
        return boxes.reshape([-1, 4])

        Expects a paddle tensor with shape Bx4. Requires the original image
        size in (H, W) format.
        
contrib/SegmentAnything/segment_anything/utils/transforms.py