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
havakv_atari_multi.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录