celebA_utils.py 文件源码

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

项目:csgm 作者: AshishBora 项目源码 文件源码
def save_image(image, path):
    """Save an image as a png file"""
    image = dcgan_utils.inverse_transform(image)
    png_writer = png.Writer(64, 64)
    with open(path, 'wb') as outfile:
        png_writer.write(outfile, 255*image.reshape([64,-1]))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号