(anchors, anchor_ratios)
return ws, hs
ratio = h /w
    :param anchors:
    :param anchor_ratios:
    :return:
ratio = h /w
    :param anchors:
    :param anchor_ratios:
    :return:
ratio = h / w : param anchors : : param anchor_ratios : : return :
def enum_ratios(anchors, anchor_ratios):
    '''
    ratio = h /w
    :param anchors:
    :param anchor_ratios:
    :return:
    '''
    ws = anchors[:, 2]  # for base anchor: w == h
    hs = anchors[:, 3]
    sqrt_ratios = tf.sqrt(tf.constant(anchor_ratios))

    ws = tf.reshape(ws / sqrt_ratios[:, tf.newaxis], [-1, 1])
    hs = tf.reshape(hs * sqrt_ratios[:, tf.newaxis], [-1, 1])

    return ws, hs
def enum_ratios ( anchors , anchor_ratios ) : ws = anchors [ : , 2 ] # for base anchor: w == h hs = anchors [ : , 3 ] sqrt_ratios = tf . sqrt ( tf . constant ( anchor_ratios ) ) ws = tf . reshape ( ws / sqrt_ratios [ : , tf . newaxis ] , [ - 1 , 1 ] ) hs = tf . reshape ( hs * sqrt_ratios [ : , tf . newaxis ] , [ - 1 , 1 ] ) return ws , hs