I tried testing the code and it crashes after the 500 episodes of training from the last part.
For state = stack_frames(stacked_frames, frame) did you forget a True or False at the end? And possibly the LHS should be state, stacked_frames too?
Traceback (most recent call last):
File "Deep Q-learning with Doom.py", line 530, in
state = stack_frames(stacked_frames, frame)
TypeError: stack_frames() missing 1 required positional argument: 'is_new_episode'
Unsure about the LHS, but I tried both True and False myself. But it then crashes on the next line too.
Traceback (most recent call last):
File "Deep Q-learning with Doom.py", line 532, in
Qs = sess.run(DQNetwork.output, feeddict = {DQNetwork.inputs: state.reshape((1, *state.shape))})
AttributeError: 'tuple' object has no attribute 'reshape'
I converted the .ipynb to one python file first. Hope that didn't cause any problems.
I tried testing the code and it crashes after the 500 episodes of training from the last part. For
state = stack_frames(stacked_frames, frame)
did you forget a True or False at the end? And possibly the LHS should bestate, stacked_frames
too?Unsure about the LHS, but I tried both True and False myself. But it then crashes on the next line too.
I converted the .ipynb to one python file first. Hope that didn't cause any problems.