def perform_no_ops(ale, no_op_max, preprocess_stack, seq):
#perform nullops
for _ in range(np.random.randint(no_op_max + 1)):
ale.act(0)
#fill the preprocessing stack
ale.act(0)
preprocess_stack.append(ale.getScreenRGB())
ale.act(0)
preprocess_stack.append(ale.getScreenRGB())
seq.append(pp.preprocess(preprocess_stack[0], preprocess_stack[0]))
评论列表
文章目录