(anchors_path)
return anchors.reshape(3, 3, 2)
loads the anchors from a file
loads the anchors from a file
loads the anchors from a file
def get_anchors(anchors_path):
    '''loads the anchors from a file'''
    with open(anchors_path) as f:
        anchors = f.readline()
    anchors = np.array(anchors.split(','), dtype=np.float32)
    return anchors.reshape(3, 3, 2)
def get_anchors ( anchors_path ) : with open ( anchors_path ) as f : anchors = f . readline ( ) anchors = np . array ( anchors . split ( ',' ) , dtype = np . float32 ) return anchors . reshape ( 3 , 3 , 2 )