def METHOD_NAME(self, boxes):
    offset = 1 if self.pixel_offset else 0
    xmin, ymin, xmax, ymax = paddle.tensor.split(
        boxes, axis=1, num_or_sections=4)
    width = xmax - xmin + offset
    height = ymax - ymin + offset
    areas = width * height
    return areas