image_process.py 文件源码

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

项目:neural-style 作者: ctliu3 项目源码 文件源码
def postprocess_caffe(output):
    output = output.data.cpu().clamp(0, 255).numpy()
    output = output[0].transpose(1, 2, 0).astype('uint8')
    output = output[..., ::-1]
    output = Image.fromarray(output)
    return output
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号