cgan.py 文件源码

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

项目:shenlan 作者: vector-1127 项目源码 文件源码
def split_input(img):
    """
    img: an 512x256x3 image
    :return: [input, output]
    """
    input, output = img[:,:img_cols,:], img[:,img_cols:,:]

    if args.mode == 'BtoA':
        input, output = output, input
    if IN_CH == 1:
        input = cv2.cvtColor(input, cv2.COLOR_RGB2GRAY)
    if OUT_CH == 1:
        output = cv2.cvtColor(output, cv2.COLOR_RGB2GRAY)
    return [input, output]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号