Deep_reinforcement_learning_Course
Deep_reinforcement_learning_Course copied to clipboard
[Policy Gradients with Doom] - ValueError: cannot reshape array of size 9031680 into shape (1,84,84,4)
Hi, I have tried to run the Policy Gradient with Doom in my Desktop, but I am running into the following error:
Traceback (most recent call last): File "Doom_Grad.py", line 357, in <module> states_mb, actions_mb, rewards_of_batch, discounted_rewards_mb, nb_episodes_mb = make_batch(batch_size, stacked_frames) File "Doom_Grad.py", line 279, in make_batch feed_dict={PGNetwork.inputs_: state.reshape(1, *state_size)}) ValueError: cannot reshape array of size 9031680 into shape (1,84,84,4)
I was wondering if anyone could help me in this part.
Did you write the preprocess function properly so that it can resize the array to 84 by 84?