load_data.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:FaceRecognition 作者: bekhzod0725 项目源码 文件源码
def get_lookalike_people():
    m = Memory(cachedir='./cache_data', compress=6, verbose=0)
    load_func = m.cache(_get_lookalike_people)

    #faces, targets, target_ids = _get_lookalike_people()
    faces, targets, target_ids = load_func()

    return Bunch( data=faces.reshape(len(faces), -1), 
                  images=faces, 
                  target=target_ids, 
                  target_names=targets,
                  DESCR="Look Alike People Dataset")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号