def pad_bbox(arr, max_bboxes=64, bbox_width=16):
    if (arr.shape[0] > max_bboxes):
        raise ValueError(('Too many bounding boxes (%d > %d)' % arr.shape[0]), max_bboxes)
    data = np.zeros(((max_bboxes + 1), bbox_width), dtype='float')
    data[0][0] = arr.shape[0]
    data[0][1] = bbox_width
    if (arr.shape[0] > 0):
        data[1:(1 + arr.shape[0])] = arr
    return data
def pad_bbox(arr, max_bboxes=64, bbox_width=16):
    if (arr.shape[0] > max_bboxes):
        raise ValueError(('Too many bounding boxes (%d > %d)' % arr.shape[0]), max_bboxes)
    data = np.zeros(((max_bboxes + 1), bbox_width), dtype='float')
    data[0][0] = arr.shape[0]
    data[0][1] = bbox_width
    if (arr.shape[0] > 0):
        data[1:(1 + arr.shape[0])] = arr
    return data