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
evaluate_face_new_data_oclusion.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录