havakv_a2c.py 文件源码

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

项目:oslodatascience-rl 作者: Froskekongen 项目源码 文件源码
def _preprocessImage(self, img):
        '''Compute luminance (grayscale in range [0, 1]) and resize to (D, D).'''
        img = rgb2gray(img) # compute luminance 210x160
        img = resize(img, (self.agent.D, self.agent.D), mode='constant') # resize image
        return img
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号