(boxes, scores, max_num_of_boxes)
return final_boxes, final_scores
num of boxes less than max num of boxes, so it need to pad with zeros[0, 0, 0, 0]
    :param boxes:
    :param scores: [-1]
    :param max_num_of_boxes:
    :return:
num of boxes less than max num of boxes, so it need to pad with zeros[0, 0, 0, 0]
    :param boxes:
    :param scores: [-1]
    :param max_num_of_boxes:
    :return:
num of boxes less than max num of boxes so it need to pad with zeros [ 0 0 0 0 ] : param boxes : : param scores : [ - 1 ] : param max_num_of_boxes : : return :
def padd_boxes_with_zeros(boxes, scores, max_num_of_boxes):

    '''
    num of boxes less than max num of boxes, so it need to pad with zeros[0, 0, 0, 0]
    :param boxes:
    :param scores: [-1]
    :param max_num_of_boxes:
    :return:
    '''

    pad_num = tf.cast(max_num_of_boxes, tf.int32) - tf.shape(boxes)[0]

    zero_boxes = tf.zeros(shape=[pad_num, 4], dtype=boxes.dtype)
    zero_scores = tf.zeros(shape=[pad_num], dtype=scores.dtype)

    final_boxes = tf.concat([boxes, zero_boxes], axis=0)

    final_scores = tf.concat([scores, zero_scores], axis=0)

    return final_boxes, final_scores
def padd_boxes_with_zeros ( boxes , scores , max_num_of_boxes ) : pad_num = tf . cast ( max_num_of_boxes , tf . int32 ) - tf . shape ( boxes ) [ 0 ] zero_boxes = tf . zeros ( shape = [ pad_num , 4 ] , dtype = boxes . dtype ) zero_scores = tf . zeros ( shape = [ pad_num ] , dtype = scores . dtype ) final_boxes = tf . concat ( [ boxes , zero_boxes ] , axis = 0 ) final_scores = tf . concat ( [ scores , zero_scores ] , axis = 0 ) return final_boxes , final_scores