uvipen / Flappy-bird-deep-Q-learning-pytorch

Deep Q-learning for playing flappy bird game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in dimension of image tensor

bigrobinson opened this issue · comments

First of all, thanks for taking the time to put this pytorch implementation together. I am getting the following error. Also can you explain what the purpose of the torch.cat line is?

Traceback (most recent call last):
File "train.py", line 133, in
train(opt)
File "train.py", line 58, in train
state = torch.cat(tuple(image for _ in range(4)))[None, :, :, :]
IndexError: too many indices for tensor of dimension 2