evaluate_face_new_data_oclusion.py 文件源码

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

项目:structured-output-ae 作者: sbelharbi 项目源码 文件源码
def hide_part(x, part):
    """x shape: 50x50"""
    print x.shape
    if part is "left":
        x[:, :20] = 0.5
    elif part is "right":
        x[:, 30:] = 0.5
    elif part is "up":
        x[:20, :] = 0.5
    elif part is "down":
        x[30:, :] = 0.5
    elif part is "middle":
        x[15:35, :] = 0.5
    # sm.toimage(x).save(str(part)+'.jpg')
    return x
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号