util.py 文件源码

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

项目:tensorflow-action-conditional-video-prediction 作者: williamd4112 项目源码 文件源码
def _transform_state_color_space_np(s):
    # s: [h, w, c*num_frame]
    num_splits = int(s.shape[-1] / 3)    
    return np.concatenate([cv2.cvtColor(x, cv2.COLOR_RGB2GRAY)[:,:,np.newaxis] for x in np.split(s, num_splits, axis=2)], axis=2)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号